Adding Initial action (#1)
Co-authored-by: kjuulh <contact@kjuulh.io> Reviewed-on: https://git.front.kjuulh.io/kjuulh/kraken/pulls/1
This commit is contained in:
25
integration_test/main_test.go
Normal file
25
integration_test/main_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
//go:build integration
|
||||
// +build integration
|
||||
|
||||
package integrationtest_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"git.front.kjuulh.io/kjuulh/kraken/internal/server"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func MainTest(t *testing.M) {
|
||||
logger, err := zap.NewDevelopment()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
err = server.Start(logger)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
os.Exit(t.Run())
|
||||
}
|
Reference in New Issue
Block a user