Skip to main content

measure

Function measure 

Source
pub fn measure(root: &Path, thresholds: Thresholds) -> 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 from the denominator) then coverage json, and evaluates the report. The coverage CLI — with pytest importable — must be on PATH.