golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.33k stars 17.7k forks source link

cmd/go: go test -json should only print JSON to stdout #54378

Open rsc opened 2 years ago

rsc commented 2 years ago

Per discussion on #53893, go test -json should only print JSON to stdout. We should ensure that's true.

seankhliao commented 2 years ago

see also #35169

gopherbot commented 1 year ago

Change https://go.dev/cl/529120 mentions this issue: cmd/go: avoid writing non-JSON "build failed" errors from 'go test -json'