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/go: go test -v does not always print packages being compiled #7902

Closed
gopherbot opened this issue Apr 30, 2014 · 2 comments
Closed

cmd/go: go test -v does not always print packages being compiled #7902

gopherbot opened this issue Apr 30, 2014 · 2 comments
Milestone

Comments

@gopherbot
Copy link

by robert.hencke:

What does 'go version' print?
go version devel +824f981dd4b7 Tue Apr 29 21:41:54 2014 -0400 darwin/amd64
(no local modifications, 824f981dd4b7 tip)

What steps reproduce the problem?

$ go test -v -a -c strings

What happened?
No output.

What should have happened instead?
Output of:
runtime
errors
...
strings_test
testmain

Please provide any additional information below.
It can be verified the packages are actually being compiled by using:
$ go test -x -a -c strings
If the -i flag is added, -v will display packages being compiled.
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-go1.4.

@randall77
Copy link
Contributor

Comment 2:

-c means to compile the test, but do not run it.  -v means to print the tests being run
(not the tests being compiled).  So things are behaving as intended.
"go test -v -a -c strings" produces a binary, strings.test.  If you run "strings.test
-test.v", you can see the list of tests.

Status changed to WorkingAsIntended.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
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

4 participants