You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably related to the issues discussed in #38063.
ianlancetaylor
changed the title
go test: printing in tests without newline and running with -v -json omits a "run" action
testing: printing in tests without newline and running with -v -json omits a "run" action
Mar 18, 2025
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
With the following test file: https://go.dev/play/p/6WawLVaiaFW
What did you see happen?
Running:
go test -json ./...
Correctly outputs 3
run
actions:While running:
go test -json -v ./...
Outputs 2
run
actions,TestFooSubTest/false
missing it:If you tweak the
Foo
function to print with a newline\n
:And re-run with:
go test -json -v ./...
It outputs the expected 3
run
actions:What did you expect to see?
The output json to contain 3
run
actions in all cases.The text was updated successfully, but these errors were encountered: