Skip to content

Commit 9cf0936

Browse files
committed
Clarify the function of the test flag
1 parent add1536 commit 9cf0936

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/bin/cargo/commands/test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ pub fn cli() -> Command {
3838
)
3939
.arg_targets_all(
4040
"Test only this package's library unit tests",
41-
"Test only the specified binary",
42-
"Test all binaries",
41+
"Test only the specified binary's unit tests",
42+
"Test all binaries's unit tests",
4343
"Test only the specified example",
4444
"Test all examples",
45-
"Test only the specified test target",
46-
"Test all test targets",
45+
"Test only the specified target's integration tests",
46+
"Test all test targets's integration tests and library unit tests",
4747
"Test only the specified bench target",
4848
"Test all bench targets",
4949
"Test all targets (does not include doctests)",

tests/testsuite/cargo_test/help/stdout.log

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ Package Selection:
2929

3030
Target Selection:
3131
--lib Test only this package's library unit tests
32-
--bins Test all binaries
33-
--bin [<NAME>] Test only the specified binary
32+
--bins Test all binaries's unit tests
33+
--bin [<NAME>] Test only the specified binary's unit tests
3434
--examples Test all examples
3535
--example [<NAME>] Test only the specified example
36-
--tests Test all test targets
37-
--test [<NAME>] Test only the specified test target
36+
--tests Test all test targets's integration tests and library unit tests
37+
--test [<NAME>] Test only the specified target's integration tests
3838
--benches Test all bench targets
3939
--bench [<NAME>] Test only the specified bench target
4040
--all-targets Test all targets (does not include doctests)

0 commit comments

Comments
 (0)