-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: don't mess up stdout when run go tests with "-json" #25651
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
Comments
This doesn't seem to be a proposal, so dropping the proposal label. Please tell us 1) what you did; 2) what happened; 3) what you wanted to happen instead. |
@KevinXing would you be able to provide more information around what you mean by "mess up stdout"? Thanks! |
Sorry for the delay. When we run |
@KevinXing Ah, I think I understand now. You are looking for the -json flag (without -verbose) to display a JSON formatted summary of test results instead of full output. I believe the current behavior is the intended functionality as the output produced by -json is supposed to be used for automated processing. @ianlancetaylor Should this issue be closed given the information gathered? |
Closing, thanks. |
Currently, we can get a machine readable output through
go test -json
which a side effect to mess up stdout.So could we add an option to make the screen clean again?
The text was updated successfully, but these errors were encountered: