]> Cypherpunks.ru repositories - gostls13.git/commit
testing: reformat test chatty output
authorJean de Klerk <deklerk@google.com>
Mon, 4 May 2020 20:06:34 +0000 (14:06 -0600)
committerJean de Klerk <deklerk@google.com>
Thu, 21 May 2020 18:28:05 +0000 (18:28 +0000)
commit0a90ecad071b3d1d5c6c789f6a6f1417b72862b2
tree6380d29eacbd1f18dc6549e816875a73e1cc369d
parentc847589ad06a1acfcceaac7b230c0d5a826caab8
testing: reformat test chatty output

In #24929, we decided to stream chatty test output. It looks like,

foo_test.go:138: TestFoo/sub-1: hello from subtest 1
foo_test.go:138: TestFoo/sub-2: hello from subtest 2

In this CL, we refactor the output to be grouped by === CONT lines, preserving
the old test-file-before-log-line behavior:

=== CONT TestFoo/sub-1
    foo_test.go:138 hello from subtest 1
=== CONT TestFoo/sub-2
    foo_test.go:138 hello from subtest 2

This should remove a layer of verbosity from tests, and make it easier to group
together related lines. It also returns to a more familiar format (the
pre-streaming format), whilst still preserving the streaming feature.

Fixes #38458

Change-Id: Iaef94c580d69cdd541b2ef055aa004f50d72d078
Reviewed-on: https://go-review.googlesource.com/c/go/+/229085
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
src/cmd/go/testdata/script/test_benchmark_chatty_fail.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_benchmark_chatty_success.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_chatty_fail.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_chatty_parallel_fail.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_chatty_parallel_success.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_chatty_success.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_flags.txt
src/cmd/go/testdata/script/test_regexps.txt
src/testing/benchmark.go
src/testing/sub_test.go
src/testing/testing.go