Skip to content

Commit d7426e5

Browse files
committed
Auto merge of #6619 - dwijnand:cargo-test-help, r=ehuss
In cargo test's help, add that examples are built Also clarify that --lib runs the library's unit tests. Closes #5387
2 parents f7ba714 + c8422ce commit d7426e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/cargo/commands/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn cli() -> App {
77
// subcommand aliases are handled in aliased_command()
88
// .alias("t")
99
.setting(AppSettings::TrailingVarArg)
10-
.about("Execute all unit and integration tests of a local package")
10+
.about("Execute all unit and integration tests and build examples of a local package")
1111
.arg(
1212
Arg::with_name("TESTNAME")
1313
.help("If specified, only run tests containing this string in their names"),
@@ -19,7 +19,7 @@ pub fn cli() -> App {
1919
.last(true),
2020
)
2121
.arg_targets_all(
22-
"Test only this package's library",
22+
"Test only this package's library unit tests",
2323
"Test only the specified binary",
2424
"Test all binaries",
2525
"Test only the specified example",

0 commit comments

Comments
 (0)