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

cargo test: continue other packages' tests when one package's test is failed. #10712

Closed
RinChanNOWWW opened this issue May 28, 2022 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@RinChanNOWWW
Copy link

Problem

My cargo version: 1.63.0-nightly (3f052d8 2022-05-12)

When I run multiple packges's tests like:

cargo test --package p1 --package p2 --package p2

When some test in p1 failed, it will not continue to test p2 and p3. I think it is better to continue to test p2 and p3.

Proposed Solution

No response

Notes

The PR support multiple packages testing: #1828. (Related issue: #1528)

@RinChanNOWWW RinChanNOWWW added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label May 28, 2022
@weihanglo
Copy link
Member

There is a flag --no-fail-fast:

Run all tests regardless of failure. Without this flag, Cargo will exit after the first executable fails. The Rust test harness will run all tests within the executable to completion, this flag only applies to the executable as a whole.

Does it work for you?

@RinChanNOWWW
Copy link
Author

It works. Thank you! @weihanglo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants