Skip to content
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/test2json: clarify usage instructions #22710

cespare opened this issue Nov 14, 2017 · 1 comment

cmd/test2json: clarify usage instructions #22710

cespare opened this issue Nov 14, 2017 · 1 comment


Copy link

cespare commented Nov 14, 2017

(Copied from a comment I left on after it was merged.)

I tried using the new test2json tool and found it initially confusing. Here it says

// Usage:
//	go test ... | go tool test2json [-p pkg] [-t]
//	./test.out 2>&1 | go tool test2json [-p pkg] [-t]

Should that recommend go test -v? Without -v, it says the test failed even when it passed:

$ go test strings | go tool test2json
{"Action":"output","Output":"ok  \tstrings\t(cached)\n"}

cc @rsc

Copy link

Change mentions this issue: cmd/test2json: add ability to run test binary

@golang golang locked and limited conversation to collaborators Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

3 participants