cmd/go: -failfast flag does not apply across packages
dsnet opened this issue · comments
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.
/cc @jayconrod @bcmills
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
Bump?
Bump!
Please refrain from "bumping" github threads; see https://github.com/golang/go/wiki/NoPlusOne. If you would like to speed up the resolution of this issue, you can either react with a 👍 on the original post, or look into sending a CL with a test. See https://go.dev/doc/contribute :)
Change https://go.dev/cl/529198 mentions this issue: cmd/go: fail fast across packages
Bump :)