From ca393013efa015924ed6c394e33a62c7635d3059 Mon Sep 17 00:00:00 2001 From: irfan sharif Date: Thu, 18 Feb 2021 15:21:27 -0500 Subject: [PATCH] Log test errors inline when non-verbose 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 --- test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.go b/test.go index 0edc489..6b87320 100644 --- a/test.go +++ b/test.go @@ -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...)