Use a struct as test options (#19393)

* Use a struct as test options

* Fix name

* Fix test
This commit is contained in:
Lunny Xiao authored and GitHub committed 2022-04-14 21:58:21 +08:00
1 parent 4dabc212c7
commit b8911fb456
40 files changed
+210 -100

No files matched your search

+4 -1
View File
@@ -14,7 +14,10 @@ import (
)
func TestMain(m *testing.M) {
unittest.MainTest(m, filepath.Join("..", ".."), "")
unittest.MainTest(m, &unittest.TestOptions{
GiteaRootPath: filepath.Join("..", ".."),
FixtureFiles: []string{""}, // load nothing
})
}
type testItem1 struct {