diff options
| author | Russ Cox <rsc@golang.org> | 2022-11-07 11:58:45 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-09 17:33:07 +0000 |
| commit | 7a92c4fc637621368eb26a7e72bb027b29568e50 (patch) | |
| tree | 820c68aa8b5e1f43dfe337cb10ddd908bac5b838 /src/cmd/internal/test2json/testdata/timeout.json | |
| parent | 9ff2a6677fd34084295172aff0848ab9a4f5b76e (diff) | |
| download | go-7a92c4fc637621368eb26a7e72bb027b29568e50.tar.xz | |
cmd/go: print test2json start events
Add a new "Action":"start" test2json event to mark the
start of the test binary execution. This adds useful information
to the JSON traces, and it also lets programs watching test
execution see the order in which the tests are being run,
because we arrange for the starts to happen sequentially.
Change-Id: I9fc865a486a55a7e9315f8686f59a2aa06455884
Reviewed-on: https://go-review.googlesource.com/c/go/+/448357
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/internal/test2json/testdata/timeout.json')
| -rw-r--r-- | src/cmd/internal/test2json/testdata/timeout.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/internal/test2json/testdata/timeout.json b/src/cmd/internal/test2json/testdata/timeout.json index 162a5bde44..dc225262f7 100644 --- a/src/cmd/internal/test2json/testdata/timeout.json +++ b/src/cmd/internal/test2json/testdata/timeout.json @@ -1,3 +1,4 @@ +{"Action":"start"} {"Action":"run","Test":"Test"} {"Action":"output","Test":"Test","Output":"=== RUN Test\n"} {"Action":"output","Test":"Test","Output":"panic: test timed out after 1s\n"} |
