Skip to content

Commit

Permalink
Restore --nocapture as a no-op argument
Browse files Browse the repository at this point in the history
Nextest's [custom test harness] support requires that tests be run with
`--nocapture`. Since libtest-mimic doesn't capture output anyway, just
accept `--nocapture` as a no-op.

I verified that with this change, libtest-mimic becomes compatible
with nextest again.

[custom test harness]: https://nexte.st/book/custom-test-harnesses.html
  • Loading branch information
sunshowers committed Aug 13, 2022
1 parent 05346b3 commit 9481a88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ pub struct Arguments {
#[clap(long = "--list", help = "List all tests and benchmarks")]
pub list: bool,

/// No-op, ignored (libtest-mimic always runs in no-capture mode)
#[clap(long = "--nocapture", help = "No-op (libtest-mimic always runs in no-capture mode)")]
pub nocapture: bool,

/// If set, filters are matched exactly rather than by substring.
#[clap(
long = "--exact",
Expand Down

0 comments on commit 9481a88

Please sign in to comment.