octopush/integration_test/main_test.go

26 lines
362 B
Go
Raw Normal View History

//go:build integration
// +build integration
package integrationtest_test
import (
"os"
"testing"
2022-09-21 11:06:53 +02:00
"git.front.kjuulh.io/kjuulh/octopush/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())
}