-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: add an option for go test
to test all packages in the current module
#46879
Comments
Do you have any suggestions on how to make this easier to find or use? I think we want to try improving the docs before we add more ways of accomplishing the same. Having more ways means more code and more documentation, as well as more edge cases; what should |
I thought about I like Go, but in some ways it could be easier. For example in Rust, you simply run I suggested it as an alternative to avoid breaking changes. |
I agree that |
For what it's worth you do have I guess we could add |
I've been mulling The main thing that makes |
Thank you for pointing that out. I didn't know that. I like the suggested |
-all
for go test
to test all packages in the current modulego test
to test all packages in the current module
go test
to test all packages in the current modulego test
to test all packages in the current module
Here's a reason to add a They were doing |
It seems a flag is not the way to go. a pattern for "the current module" should probably be a separate proposal |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to test all packages inside my go module.
After searching on the internet, I found on Stackoverflow, that you can use
go test ./...
.Even though this is documented in
go help test
, it's a bit hidden and it looks a bit strange.Therefore I suggest adding a flag
-all
, e. g.go test -all
as an (better) alternative togo test ./...
.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: