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: -failfast flag does not apply across packages #33038

Open
dsnet opened this issue Jul 10, 2019 · 2 comments
Open

cmd/go: -failfast flag does not apply across packages #33038

dsnet opened this issue Jul 10, 2019 · 2 comments

Comments

@dsnet
Copy link
Member

@dsnet dsnet commented Jul 10, 2019

Using go1.12

The documentation for failfast says "Do not start new tests after the first test failure."

When running go test ./... -failfast and one of the packages has a failure, it continues to run the tests for other packages. My interpretation of the documentation above is that go test would stop after any failure, even if in a different package.

@dmitshur dmitshur added this to the Go1.14 milestone Jul 15, 2019
@dmitshur dmitshur changed the title testing: failfast flags does not apply across packages cmd/go: -failfast flag does not apply across packages Jul 15, 2019
@dmitshur
Copy link
Member

@dmitshur dmitshur commented Jul 15, 2019

@zenovich
Copy link

@zenovich zenovich commented Jul 23, 2019

For now, this command helps me a lot:

for s in $(go list ./...); do if ! go test -failfast -v -p 1 $s; then break; fi; done
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.