-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
accepts conflicting test flags
#5054
Comments
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it. I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect? The team would be especially grateful if such a comment included details such as:
Thank you for contributing! If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable! |
…rget-options, r=alexcrichton Stop test --doc from silently ignoring other target selecting options Fixes #5054
cargo test
accepts multiple flags that specify which tests to run, but will only honor one of them. For example,cargo test --lib --doc
seems to only run the doc tests.I ran into an issue where cargo test was invoked with
--lib --doc
on Travis, with the intent of running both library and documentation tests, but library tests were skipped, leading to an accidental gap in CI test coverage.I would suggest that both flags be honored, but just returning an error for conflicting flags also seems reasonable.
The text was updated successfully, but these errors were encountered: