Skip to content

Commit

Permalink
Clarify the function of the test flag
Browse files Browse the repository at this point in the history
  • Loading branch information
heisen-li committed Jan 2, 2024
1 parent add1536 commit 9cf0936
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/bin/cargo/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ pub fn cli() -> Command {
)
.arg_targets_all(
"Test only this package's library unit tests",
"Test only the specified binary",
"Test all binaries",
"Test only the specified binary's unit tests",
"Test all binaries's unit tests",
"Test only the specified example",
"Test all examples",
"Test only the specified test target",
"Test all test targets",
"Test only the specified target's integration tests",
"Test all test targets's integration tests and library unit tests",
"Test only the specified bench target",
"Test all bench targets",
"Test all targets (does not include doctests)",
Expand Down
8 changes: 4 additions & 4 deletions tests/testsuite/cargo_test/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ Package Selection:

Target Selection:
--lib Test only this package's library unit tests
--bins Test all binaries
--bin [<NAME>] Test only the specified binary
--bins Test all binaries's unit tests
--bin [<NAME>] Test only the specified binary's unit tests
--examples Test all examples
--example [<NAME>] Test only the specified example
--tests Test all test targets
--test [<NAME>] Test only the specified test target
--tests Test all test targets's integration tests and library unit tests
--test [<NAME>] Test only the specified target's integration tests
--benches Test all bench targets
--bench [<NAME>] Test only the specified bench target
--all-targets Test all targets (does not include doctests)
Expand Down

0 comments on commit 9cf0936

Please sign in to comment.