Skip to main content

cargo_test_command

Function cargo_test_command 

Source
pub fn cargo_test_command<I, S>(args: I) -> Command
where I: IntoIterator<Item = S>, S: AsRef<OsStr>,
Expand description

Builds the cargo test invocation the runner wraps.

args is the runner’s own arguments with the program name already removed. Cargo runs an external subcommand as cargo-test-better test-better ..., so a leading test-better argument is dropped here and everything after it is forwarded to cargo test verbatim. The structured-output channel is opened by exporting RUNNER_ENV.