cmd/test2json: missing pass/fail action on individual benchmark #61767
Labels
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?Not relevant - omitting
What did you do?
File
foo_test.go
:Run
go test -json -bench=. foo_test.go
Result:
What did you expect to see?
Note that TestFoo gets a line with an individual test result --
This is missing for BenchmarkFib10.
Expected to see:
After Fib10 passes.
Really, this likely means that BenchmarkFib10 needs to be framed with a
--- (PASS|SKIP|FAIL): BenchmarkFib10 (0.00s)\n
at the end when-test.v=test2json
is passed to the test binary as well.(Previous work in this area fixed most of the test2json issues I've seen, cc @rsc -- https://go-review.googlesource.com/c/go/+/443596)
The text was updated successfully, but these errors were encountered: