cmd/go: go test -json has non-JSON printed to stdout when build fails #35169
Labels
FeatureRequest
GoCommand
cmd/go
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
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
go test -json
when a package has a build failure. Here is myexample_test.go
:What did you expect to see?
I expected to see JSON events similar to when a package is skipped because it has no tests. Here is an example:
What did you see instead?
The package result is printed as-is to stdout:
The text was updated successfully, but these errors were encountered: