Files
kontor/kontor-gin/internal/main_test.go
T
Thomas Peetz 980eda29af
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
add tests for repository
2026-10-06 17:11:42 +02:00

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))
}