File tree Expand file tree Collapse file tree 13 files changed +32
-32
lines changed Expand file tree Collapse file tree 13 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -427,11 +427,11 @@ fn report_test_error(
427
427
crate :: display_error ( & err, & mut ws. gctx ( ) . shell ( ) ) ;
428
428
429
429
let harness: bool = unit_err. unit . target . harness ( ) ;
430
- let nocapture: bool = test_args. contains ( & "--nocapture" ) ;
430
+ let nocapture: bool = test_args. contains ( & "--nocapture" ) || test_args . contains ( & "--no-capture" ) ;
431
431
432
432
if !is_simple && executed && harness && !nocapture {
433
433
drop ( ws. gctx ( ) . shell ( ) . note (
434
- "test exited abnormally; to see the full output pass --nocapture to the harness." ,
434
+ "test exited abnormally; to see the full output pass --no-capture to the harness." ,
435
435
) ) ;
436
436
}
437
437
}
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ for more information on per-target settings.
126
126
127
127
By default the Rust test harness hides output from benchmark execution to keep
128
128
results readable. Benchmark output can be recovered (e.g., for debugging) by
129
- passing ` --nocapture ` to the benchmark binaries:
129
+ passing ` --no-capture ` to the benchmark binaries:
130
130
131
- cargo bench -- --nocapture
131
+ cargo bench -- --no-capture
132
132
133
133
{{#options}}
134
134
Original file line number Diff line number Diff line change @@ -150,9 +150,9 @@ target options.
150
150
151
151
By default the Rust test harness hides output from test execution to keep
152
152
results readable. Test output can be recovered (e.g., for debugging) by passing
153
- ` --nocapture ` to the test binaries:
153
+ ` --no-capture ` to the test binaries:
154
154
155
- cargo test -- --nocapture
155
+ cargo test -- --no-capture
156
156
157
157
{{#options}}
158
158
Original file line number Diff line number Diff line change @@ -283,9 +283,9 @@ OPTIONS
283
283
Display Options
284
284
By default the Rust test harness hides output from benchmark execution
285
285
to keep results readable. Benchmark output can be recovered (e.g., for
286
- debugging) by passing --nocapture to the benchmark binaries:
286
+ debugging) by passing --no-capture to the benchmark binaries:
287
287
288
- cargo bench -- --nocapture
288
+ cargo bench -- --no-capture
289
289
290
290
-v, --verbose
291
291
Use verbose output. May be specified twice for “very verbose”
Original file line number Diff line number Diff line change @@ -309,9 +309,9 @@ OPTIONS
309
309
Display Options
310
310
By default the Rust test harness hides output from test execution to
311
311
keep results readable. Test output can be recovered (e.g., for
312
- debugging) by passing --nocapture to the test binaries:
312
+ debugging) by passing --no-capture to the test binaries:
313
313
314
- cargo test -- --nocapture
314
+ cargo test -- --no-capture
315
315
316
316
-v, --verbose
317
317
Use verbose output. May be specified twice for “very verbose”
Original file line number Diff line number Diff line change @@ -310,9 +310,9 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
310
310
311
311
By default the Rust test harness hides output from benchmark execution to keep
312
312
results readable. Benchmark output can be recovered (e.g., for debugging) by
313
- passing ` --nocapture ` to the benchmark binaries:
313
+ passing ` --no-capture ` to the benchmark binaries:
314
314
315
- cargo bench -- --nocapture
315
+ cargo bench -- --no-capture
316
316
317
317
<dl >
318
318
Original file line number Diff line number Diff line change @@ -338,9 +338,9 @@ Defaults to <code>target</code> in the root of the workspace.</dd>
338
338
339
339
By default the Rust test harness hides output from test execution to keep
340
340
results readable. Test output can be recovered (e.g., for debugging) by passing
341
- ` --nocapture ` to the test binaries:
341
+ ` --no-capture ` to the test binaries:
342
342
343
- cargo test -- --nocapture
343
+ cargo test -- --no-capture
344
344
345
345
<dl >
346
346
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ _cargo()
91
91
local opt__vendor=" $opt_common $opt_mani $opt_lock $opt_sync --no-delete --respect-source-config --versioned-dirs"
92
92
local opt__version=" $opt_common $opt_lock "
93
93
local opt__yank=" $opt_common $opt_lock --version --undo --index --token --registry"
94
- local opt__libtest=" --help --include-ignored --ignored --test --bench --list --logfile --nocapture --test-threads --skip -q --quiet --exact --color --format"
94
+ local opt__libtest=" --help --include-ignored --ignored --test --bench --list --logfile --no-capture --test-threads --skip -q --quiet --exact --color --format"
95
95
96
96
if [[ $cword -gt $dd_i ]]; then
97
97
# Completion after -- separator.
Original file line number Diff line number Diff line change @@ -330,11 +330,11 @@ Defaults to \fBtarget\fR in the root of the workspace.
330
330
.SS "Display Options"
331
331
By default the Rust test harness hides output from benchmark execution to keep
332
332
results readable. Benchmark output can be recovered (e.g., for debugging) by
333
- passing \fB \-\- nocapture \fR to the benchmark binaries:
333
+ passing \fB \-\- no \- capture \fR to the benchmark binaries:
334
334
.sp
335
335
.RS 4
336
336
.nf
337
- cargo bench \-\- \-\- nocapture
337
+ cargo bench \-\- \-\- no \- capture
338
338
.fi
339
339
.RE
340
340
.sp
Original file line number Diff line number Diff line change @@ -357,11 +357,11 @@ Defaults to \fBtarget\fR in the root of the workspace.
357
357
.SS "Display Options"
358
358
By default the Rust test harness hides output from test execution to keep
359
359
results readable. Test output can be recovered (e.g., for debugging) by passing
360
- \fB \-\- nocapture \fR to the test binaries:
360
+ \fB \-\- no \- capture \fR to the test binaries:
361
361
.sp
362
362
.RS 4
363
363
.nf
364
- cargo test \-\- \-\- nocapture
364
+ cargo test \-\- \-\- no \- capture
365
365
.fi
366
366
.RE
367
367
.sp
You can’t perform that action at this time.
0 commit comments