Skip to content

Commit 88ad9ca

Browse files
committed
[cargo-miri] support nextest
Add the ability to run the `list` and `run` nextest commands, which enable per-test isolation.
1 parent 9ecdc9e commit 88ad9ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cargo-miri/bin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Usage:
2727
Subcommands:
2828
run, r Run binaries
2929
test, t Run tests
30+
nextest Run tests with nextest (requires cargo-nextest installed)
3031
setup Only perform automatic setup, but without asking questions (for getting a proper libstd)
3132
3233
The cargo options are exactly the same as for `cargo run` and `cargo test`, respectively.
@@ -586,11 +587,10 @@ fn phase_cargo_miri(mut args: env::Args) {
586587
};
587588
let subcommand = match &*subcommand {
588589
"setup" => MiriCommand::Setup,
589-
"test" | "t" | "run" | "r" => MiriCommand::Forward(subcommand),
590-
// Invalid command.
590+
"test" | "t" | "run" | "r" | "nextest" => MiriCommand::Forward(subcommand),
591591
_ =>
592592
show_error(format!(
593-
"`cargo miri` supports the following subcommands: `run`, `test`, and `setup`."
593+
"`cargo miri` supports the following subcommands: `run`, `test`, `nextest`, and `setup`."
594594
)),
595595
};
596596
let verbose = num_arg_flag("-v");

0 commit comments

Comments
 (0)