Skip to content

Commit 761ea2d

Browse files
committed
Auto merge of #2777 - matklad:harness-help, r=alexcrichton
Explain how to get help for the test harness TIL that the default test harness has a non-trivial number of options. Guess it's better to share this knowledge.
2 parents 26cb07b + 82eb06a commit 761ea2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ keep results readable. Test output can be recovered (e.g. for debugging)
7373
by passing `--nocapture` to the test binaries:
7474
7575
cargo test -- --nocapture
76+
77+
To get the list of all options available for the test binaries use this:
78+
79+
cargo test -- --help
7680
";
7781

7882
pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {

0 commit comments

Comments
 (0)