add tests for repository
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-10-06 17:11:42 +02:00
parent 32f3f034eb
commit 980eda29af
9 changed files with 154 additions and 17 deletions
+15 -1
View File
@@ -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))
}