Skip to content

Commit

Permalink
Clarify the documentation on cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 7, 2014
1 parent 8cc600a commit 7dc7518
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bin/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Usage:
Options:
-h, --help Print this message
--name NAME Name of the test to run
--name NAME Name of the test executable to run
--no-run Compile, but don't run tests
-p SPEC, --package SPEC Package to run tests for
-j N, --jobs N The number of jobs to run in parallel
Expand All @@ -38,7 +38,10 @@ Options:
-v, --verbose Use verbose output
All of the trailing arguments are passed to the test binaries generated for
filtering tests and generally providing options configuring how they run.
filtering tests and generally providing options configuring how they run. For
example, this will run all tests with the name `foo` in their name:
cargo test foo
If the --package argument is given, then SPEC is a package id specification
which indicates which package should be tested. If it is not given, then the
Expand Down

2 comments on commit 7dc7518

@brson
Copy link

@brson brson commented on 7dc7518 Nov 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@alexcrichton
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors: retry

Please sign in to comment.