diff --git a/src/bin/cargo/commands/test.rs b/src/bin/cargo/commands/test.rs index 6e8aff043..5fbf96944 100644 --- a/src/bin/cargo/commands/test.rs +++ b/src/bin/cargo/commands/test.rs @@ -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)", diff --git a/tests/testsuite/cargo_test/help/stdout.log b/tests/testsuite/cargo_test/help/stdout.log index d7ec18f46..f22e69d03 100644 --- a/tests/testsuite/cargo_test/help/stdout.log +++ b/tests/testsuite/cargo_test/help/stdout.log @@ -29,12 +29,12 @@ Package Selection: Target Selection: --lib Test only this package's library unit tests - --bins Test all binaries - --bin [] Test only the specified binary + --bins Test all binaries's unit tests + --bin [] Test only the specified binary's unit tests --examples Test all examples --example [] Test only the specified example - --tests Test all test targets - --test [] Test only the specified test target + --tests Test all test targets's integration tests and library unit tests + --test [] Test only the specified target's integration tests --benches Test all bench targets --bench [] Test only the specified bench target --all-targets Test all targets (does not include doctests)