cargo::ops::cargo_test

Function run_doc_tests

Source
fn run_doc_tests(
    ws: &Workspace<'_>,
    options: &TestOptions,
    test_args: &[&str],
    compilation: &Compilation<'_>,
) -> Result<Vec<UnitTestError>, CliError>
Expand description

Runs doc tests.

Returns a Vec of tests that failed when --no-fail-fast is used. If --no-fail-fast is not used, then this returns an Err.