Skip to content

Commit 61db175

Browse files
committed
Auto merge of rust-lang#82350 - ehuss:test-chapter, r=jyn514
Add a chapter on the test harness. There isn't really any online documentation on the test harness, so this adds a chapter to the rustc book which provides information on how the harness works and details on the command-line options.
2 parents b8cee0e + fb1c813 commit 61db175

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/src/cli.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,8 @@ fn optgroups() -> getopts::Options {
5151
.optflag("", "test", "Run tests and not benchmarks")
5252
.optflag("", "bench", "Run benchmarks instead of tests")
5353
.optflag("", "list", "List all tests and benchmarks")
54-
.optflag("h", "help", "Display this message (longer with --help)")
55-
.optopt(
56-
"",
57-
"logfile",
58-
"Write logs to the specified file instead \
59-
of stdout",
60-
"PATH",
61-
)
54+
.optflag("h", "help", "Display this message")
55+
.optopt("", "logfile", "Write logs to the specified file", "PATH")
6256
.optflag(
6357
"",
6458
"nocapture",

0 commit comments

Comments
 (0)