mage test

This commit is contained in:
David Zhao
2020-12-22 14:42:08 -08:00
parent 202979d346
commit 1b396d2000
+7
View File
@@ -124,6 +124,13 @@ func Build() error {
return nil
}
func Test() error {
mg.Deps(Proto, generate)
cmd := exec.Command("go", "test", "./...")
connectStd(cmd)
return cmd.Run()
}
// cleans up builds
func Clean() {
fmt.Println("cleaning...")