mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
fix(tests): Switch from --nocapture to --no-capture (#30638)
`--no-capture` was added in 1.88, with `--nocapture` being soft-deprecated. https://releases.rs/docs/1.88.0/#libraries
This commit is contained in:
parent
54bda9febc
commit
d471a80f7d
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -25,8 +25,9 @@ use test_util::tests_path;
|
|||
|
||||
const MANIFEST_FILE_NAME: &str = "__test__.jsonc";
|
||||
|
||||
static NO_CAPTURE: Lazy<bool> =
|
||||
Lazy::new(|| std::env::args().any(|arg| arg == "--nocapture"));
|
||||
static NO_CAPTURE: Lazy<bool> = Lazy::new(|| {
|
||||
std::env::args().any(|arg| arg == "--no-capture" || arg == "--nocapture")
|
||||
});
|
||||
|
||||
#[derive(Clone, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue