diff --git a/tests/specs/README.md b/tests/specs/README.md index 436dc09409..2d2e69db02 100644 --- a/tests/specs/README.md +++ b/tests/specs/README.md @@ -26,11 +26,11 @@ Or just the following, though it might run other tests: cargo test test_name ``` -To run showing the output of every test use `-- --nocapture` (note: this will +To run showing the output of every test use `-- --no-capture` (note: this will cause tests to run sequentially instead of in parallel): ``` -cargo test test_name -- --nocapture +cargo test test_name -- --no-capture ``` ## `__test__.json` file diff --git a/tests/specs/mod.rs b/tests/specs/mod.rs index 16cd700c57..dfc5bbae5f 100644 --- a/tests/specs/mod.rs +++ b/tests/specs/mod.rs @@ -25,8 +25,9 @@ use test_util::tests_path; const MANIFEST_FILE_NAME: &str = "__test__.jsonc"; -static NO_CAPTURE: Lazy = - Lazy::new(|| std::env::args().any(|arg| arg == "--nocapture")); +static NO_CAPTURE: Lazy = Lazy::new(|| { + std::env::args().any(|arg| arg == "--no-capture" || arg == "--nocapture") +}); #[derive(Clone, Deserialize)] #[serde(untagged)]