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

Closed
cespare opened this issue Nov 14, 2017 · 1 comment
Closed

cmd/test2json: clarify usage instructions #22710

cespare opened this issue Nov 14, 2017 · 1 comment

Comments

@cespare
Copy link
Contributor

cespare commented Nov 14, 2017

(Copied from a comment I left on https://golang.org/cl/76872 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"}
{"Action":"fail"}

cc @rsc

@gopherbot
Copy link

Change https://golang.org/cl/81555 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.
Projects
None yet
Development

No branches or pull requests

3 participants