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" accepts -test.FLAG where FLAG is any flag accepted by "go build" #18682

minux opened this issue Jan 17, 2017 · 2 comments


Copy link

commented Jan 17, 2017

This behavior always existed from Go 1.0.

For example:

$ go test image
ok  	image	0.361s

Is this expected? I find it quite confusing as there is no flag documented anywhere and it conflicts with user defined -test.FLAG flags. If this is WAI, we probably should document it.

@bradfitz bradfitz added this to the Go1.9 milestone Jan 19, 2017


This comment has been minimized.

Copy link

commented Jun 22, 2017

Yes, we should definitely fix this, but I think it's too late for Go 1.9.

@rsc rsc modified the milestones: Go1.10, Go1.9 Jun 22, 2017

@rsc rsc modified the milestones: Go1.10, Go1.11 Dec 1, 2017


This comment has been minimized.

Copy link

commented Apr 18, 2018

/cc @bcmills

@gopherbot gopherbot modified the milestones: Go1.11, Unplanned May 23, 2018

@bcmills bcmills added the NeedsFix label Jan 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
5 participants
You can’t perform that action at this time.