From 9481a88b74724c6ee4a7433eb8e367cffa089627 Mon Sep 17 00:00:00 2001 From: Rain Date: Sat, 13 Aug 2022 14:05:29 -0700 Subject: [PATCH] Restore --nocapture as a no-op argument 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 --- src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/args.rs b/src/args.rs index 70a0ac5..7be151b 100644 --- a/src/args.rs +++ b/src/args.rs @@ -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",