Skip to content

Commit

Permalink
In cargo test's help, add that examples are built
Browse files Browse the repository at this point in the history
Also clarify that --lib runs the library's unit tests.
  • Loading branch information
dwijnand committed Feb 4, 2019
1 parent 129e762 commit c8422ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cargo/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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",
Expand Down

0 comments on commit c8422ce

Please sign in to comment.