This commit is contained in:
@@ -3,9 +3,23 @@ package internal
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"kontor-api-gin/internal/test/testutils"
|
||||
"kontor-api-gin/internal/tests"
|
||||
"kontor-api-gin/internal/tests/testutils"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
var TestDB *gorm.DB
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
testutils.InitializeTestSuite(m)
|
||||
}
|
||||
|
||||
func TestRepos(t *testing.T) {
|
||||
suite.Run(t, new(tests.RepositoryTestSuite))
|
||||
}
|
||||
|
||||
func TestServices(t *testing.T) {
|
||||
suite.Run(t, new(tests.ServiceTestSuite))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user