-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Documentation for --tests flag is very unclear #10490
Comments
Without having looked into it, my guess is that its running all test compilation targets and that white box tests (unit tests) are an implicit test target while docs are a special case and so not a compilation target (see #6669). |
Actually, the manual in
I guess we just need to simplify it to fit in a single line. |
Whaaat, there's a separate |
clap supports a "short help" vs "long help" where |
I think this can close. Help output is detailed enough when requested in a specific way. @jplatte, does knowing the detailed help exists remove the issue you were having? Do you expect to see something different? |
FWIW I don't think I've ever used |
Yes, every command should already have a line at the end mentioning
Thanks everyone for the discussion. I'll go ahead and close this. For general |
Problem
cargo test --help
has this to say about the--tests
flag:Steps
cargo test --help
Possible Solution(s)
Explicitly state whether unit, integration and/or doctests are being run.
It seems to me like it's unit and integration tests but not doctests. If this is the intended behavior, I can create a PR to improve the help message.
Version
The text was updated successfully, but these errors were encountered: