Skip to content

Commit

Permalink
Print test output when a failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Mar 6, 2016
1 parent 549aea3 commit 18fb9c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go-carpet.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ func runGoTest(path string, coverFileName string, hideStderr bool) error {
if !hideStderr {
osExec.Stderr = os.Stderr
}
err := osExec.Run()
output, err := osExec.Output()
if err != nil {
fmt.Print(string(output))
return err
}

Expand Down

0 comments on commit 18fb9c1

Please sign in to comment.