cargo::ops::cargo_test

Function run_tests

source
pub fn run_tests(
    ws: &Workspace<'_>,
    options: &TestOptions,
    test_args: &[&str],
) -> CliResult
Expand description

Compiles and runs tests.

On error, the returned CliError will have the appropriate process exit code that Cargo should use.