Skip to content

Commit

Permalink
[cargo-miri] support nextest
Browse files Browse the repository at this point in the history
Add the ability to run the `list` and `run` nextest commands, which
enable per-test isolation.
  • Loading branch information
sunshowers committed Jul 21, 2022
1 parent 9ecdc9e commit 88ad9ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cargo-miri/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Usage:
Subcommands:
run, r Run binaries
test, t Run tests
nextest Run tests with nextest (requires cargo-nextest installed)
setup Only perform automatic setup, but without asking questions (for getting a proper libstd)
The cargo options are exactly the same as for `cargo run` and `cargo test`, respectively.
Expand Down Expand Up @@ -586,11 +587,10 @@ fn phase_cargo_miri(mut args: env::Args) {
};
let subcommand = match &*subcommand {
"setup" => MiriCommand::Setup,
"test" | "t" | "run" | "r" => MiriCommand::Forward(subcommand),
// Invalid command.
"test" | "t" | "run" | "r" | "nextest" => MiriCommand::Forward(subcommand),
_ =>
show_error(format!(
"`cargo miri` supports the following subcommands: `run`, `test`, and `setup`."
"`cargo miri` supports the following subcommands: `run`, `test`, `nextest`, and `setup`."
)),
};
let verbose = num_arg_flag("-v");
Expand Down

0 comments on commit 88ad9ca

Please sign in to comment.