Improve test CI (#262)

* minimal change

* Better test format for GH CI

* Give server a bit longer to startup, to improve GH test
This commit is contained in:
David Zhao
2021-12-14 17:15:08 -08:00
committed by GitHub
parent 0d0a275101
commit c08d1e9d72
4 changed files with 45 additions and 33 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ func PublishDocker() error {
// run unit tests, skipping integration
func Test() error {
mg.Deps(generateWire)
cmd := exec.Command("go", "test", "-short", "./...")
cmd := exec.Command("go", "test", "-v", "-short", "./...")
connectStd(cmd)
return cmd.Run()
}
@@ -126,7 +126,7 @@ func Test() error {
func TestAll() error {
mg.Deps(generateWire)
// "-v", "-race",
cmd := exec.Command("go", "test", "./...", "-count=1", "-timeout=4m")
cmd := exec.Command("go", "test", "-v", "./...", "-count=1", "-timeout=4m")
connectStd(cmd)
return cmd.Run()
}