diff options
| -rw-r--r-- | Magefile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Magefile.go b/Magefile.go index 71fdc1f..b1393be 100644 --- a/Magefile.go +++ b/Magefile.go @@ -255,12 +255,12 @@ func atomicInstallBinary(src, dstDir string) error { return nil } -// Test runs the test suite. +// Test runs the test suite with the race detector enabled to catch data races. func Test() error { if err := sh.RunV("go", "clean", "-testcache"); err != nil { return err } - return sh.RunV("go", "test", "-v", "./...") + return sh.RunV("go", "test", "-race", "-v", "./...") } // Coverage generates a combined coverage profile across all packages (cross-package coverage). |
