26 lines
419 B
Go
26 lines
419 B
Go
package internal
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"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))
|
|
}
|