cmd/go: go test -list does things other than listing tests #25339
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
This is a small quibble, but caused me some surprise recently.
What version of Go are you using (
go version
)?go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
foo_test.go
What did you expect to see?
What did you see instead?
In #17209, Nemith proposes that
go test -list
would list the tests, but no tests would be run or any other operation.I think that since it can be statically determined what the tests in a package are, the -list functionality should not depend on executing the test binary.
The text was updated successfully, but these errors were encountered: