Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
Log test errors inline when non-verbose
Browse files Browse the repository at this point in the history
The alternative is a bit more cumbersome to work with:

    INFO: Build completed, 1 test FAILED, 2 total actions
    //pkg/util/tracing:tracing_test
      /private/var/tmp/_bazel_irfansharif/<...>/tracing/tracing_test/test.log

    INFO: Build completed, 1 test FAILED, 2 total actions
    ERROR: exit status 3
  • Loading branch information
irfansharif committed Feb 22, 2021
1 parent 41bcbde commit ca39301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ func runUnitTest(ctx context.Context, cmd *cobra.Command, pkgs []string) error {
}
if verbose {
args = append(args, "--test_output", "all", "--test_arg", "-test.v")
} else {
args = append(args, "--test_output", "errors")
}

return execute(ctx, "bazel", args...)
Expand Down

0 comments on commit ca39301

Please sign in to comment.