multi-node integration tests

This commit is contained in:
David Zhao
2021-01-19 20:34:11 -08:00
parent 0b00b26d05
commit c04fd86f9c
9 changed files with 234 additions and 131 deletions
+9
View File
@@ -134,7 +134,16 @@ func Build() error {
return nil
}
// run unit tests, skipping integration
func Test() error {
mg.Deps(Proto)
cmd := exec.Command("go", "test", "-short", "./...")
connectStd(cmd)
return cmd.Run()
}
// run all thests including integration
func TestAll() error {
mg.Deps(Proto)
cmd := exec.Command("go", "test", "./...")
connectStd(cmd)