This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Don't print SQL in unit tests (
#2995
)
* Add GITEA_UNIT_TESTS_VERBOSE environment variable to enable printing SQL
tags/v1.21.12.1
Ethan Koenig
Lauris BH
7 years ago
parent
8b58772659
commit
1028ef2def
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
models/unit_tests.go
+ 4
- 1
models/unit_tests.go
View File
@@ -32,7 +32,10 @@ func CreateTestEngine(fixturesDir string) error {
if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil {
return err
}
x.ShowSQL(true)
switch os.Getenv("GITEA_UNIT_TESTS_VERBOSE") {
case "true", "1":
x.ShowSQL(true)
}
return InitFixtures(&testfixtures.SQLite{}, fixturesDir)
}
Write
Preview
Loading…
Cancel
Save