Skip to content

Commit 2ad8f5d

Browse files
committed
Add env variable
1 parent 93a966e commit 2ad8f5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/unit_tests.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ func CreateTestEngine(fixturesDir string) error {
3232
if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
3333
return err
3434
}
35+
switch os.Getenv("GITEA_UNIT_TESTS_VERBOSE") {
36+
case "true", "1":
37+
x.ShowSQL(true)
38+
}
3539

3640
return InitFixtures(&testfixtures.SQLite{}, fixturesDir)
3741
}

0 commit comments

Comments
 (0)