Skip to main content

measure

Function measure 

Source
pub fn measure(
    root: &Path,
    thresholds: Thresholds,
    omit: &[String],
) -> Result<Outcome>
Expand description

Run the unit suite under coverage.py in root and check it against thresholds.

Shells out to coverage run --branch (omitting *_test.py and every path in omit from the denominator) then coverage json, and evaluates the report. omit holds the coverage-rule exemptions resolved from config, as root-relative paths. The coverage CLI — with pytest importable — must be on PATH.