diff --git a/main.go b/main.go index 4762527..2f2cb1c 100644 --- a/main.go +++ b/main.go @@ -18,12 +18,16 @@ func main() { } func runGoTest() int { + // Run go test + args := []string{"test"} args = append(args, os.Args[1:]...) cmd := exec.Command("go", args...) cmd.Env = os.Environ() + // Output pipe and error pipe + outReader, outWriter := io.Pipe() defer outWriter.Close()