cargo::ops::cargo_test

Function run_benches

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

Compiles and runs benchmarks.

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