-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: using both -v and -json with go test has unintended effects #70384
Comments
This is documented at https://pkg.go.dev/cmd/test2json as:
In other words, just CC @matloob, @samthanawalla. |
I guess instead of calling this a bug another way of putting it is: As a developer working on tooling (improved test support for vscode-go), it is unpleasantly surprising that adding -v degrades the utility of -json. I'd never use -v -json manually but it's not hard to miss when I'm shoving flags into an array in preparation for executing go test. |
Go version
go version go1.23.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
go test -v -json -run=- -bench=^BenchmarkSimple$ ./pkg/vm
in the root of https://gitlab.com/firelizzard/go-scriptWhat did you see happen?
Nothing but output events for the benchmark
What did you expect to see?
An
"Action":"run"
event for the benchmarkThe text was updated successfully, but these errors were encountered: