From c8422cebe09df824c37b03e4bdf0e7e35204d9ba Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Sun, 3 Feb 2019 14:28:52 +0100 Subject: [PATCH] In cargo test's help, add that examples are built Also clarify that --lib runs the library's unit tests. --- src/bin/cargo/commands/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/cargo/commands/test.rs b/src/bin/cargo/commands/test.rs index 63ac24c5311..79a036079f5 100644 --- a/src/bin/cargo/commands/test.rs +++ b/src/bin/cargo/commands/test.rs @@ -7,7 +7,7 @@ pub fn cli() -> App { // subcommand aliases are handled in aliased_command() // .alias("t") .setting(AppSettings::TrailingVarArg) - .about("Execute all unit and integration tests of a local package") + .about("Execute all unit and integration tests and build examples of a local package") .arg( Arg::with_name("TESTNAME") .help("If specified, only run tests containing this string in their names"), @@ -19,7 +19,7 @@ pub fn cli() -> App { .last(true), ) .arg_targets_all( - "Test only this package's library", + "Test only this package's library unit tests", "Test only the specified binary", "Test all binaries", "Test only the specified example",