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

Recategorize cargo test's --doc flag under "Target Selection" #13756

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/bin/cargo/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub fn cli() -> Command {
.num_args(0..)
.last(true),
)
.arg(flag("doc", "Test only this library's documentation"))
.arg(flag("no-run", "Compile, but don't run tests"))
.arg(flag("no-fail-fast", "Run all tests regardless of failure"))
.arg_future_incompat_report()
Expand Down Expand Up @@ -47,6 +46,10 @@ pub fn cli() -> Command {
"Test all bench targets",
"Test all targets (does not include doctests)",
)
.arg(
flag("doc", "Test only this library's documentation")
.help_heading(heading::TARGET_SELECTION),
)
.arg_features()
.arg_jobs()
.arg_unsupported_keep_going()
Expand Down
60 changes: 30 additions & 30 deletions tests/testsuite/cargo_test/help/stdout.term.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.