diff --git a/src/bin/cargo/commands/test.rs b/src/bin/cargo/commands/test.rs index 607655aaf33..424ed3f00d6 100644 --- a/src/bin/cargo/commands/test.rs +++ b/src/bin/cargo/commands/test.rs @@ -34,7 +34,7 @@ pub fn cli() -> Command { "Test all tests", "Test only the specified bench target", "Test all benches", - "Test all targets", + "Test all targets (does not include doctests)", ) .arg(flag("doc", "Test only this library's documentation")) .arg(flag("no-run", "Compile, but don't run tests")) diff --git a/tests/testsuite/cargo_test/help/stdout.log b/tests/testsuite/cargo_test/help/stdout.log index c26eb06197e..7e60fa42444 100644 --- a/tests/testsuite/cargo_test/help/stdout.log +++ b/tests/testsuite/cargo_test/help/stdout.log @@ -17,7 +17,7 @@ Options: --test [] Test only the specified test target --benches Test all benches --bench [] Test only the specified bench target - --all-targets Test all targets + --all-targets Test all targets (does not include doctests) --doc Test only this library's documentation --no-run Compile, but don't run tests --no-fail-fast Run all tests regardless of failure