From 88ad9ca9067ea1ce04313d7384c14fc24d1adbee Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 19 Jul 2022 19:37:24 -0700 Subject: [PATCH] [cargo-miri] support nextest Add the ability to run the `list` and `run` nextest commands, which enable per-test isolation. --- cargo-miri/bin.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cargo-miri/bin.rs b/cargo-miri/bin.rs index ecce1dece02..9f6603f80b7 100644 --- a/cargo-miri/bin.rs +++ b/cargo-miri/bin.rs @@ -27,6 +27,7 @@ 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. @@ -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");