Orchestrata Ultimate › Tests › Reference › scripts › test_coverage_ratchet

Tests reference — tests/scripts/test_coverage_ratchet.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_coverage_ratchet.py

source · 9 tests · 282 lines

Tests for scripts/coverage_ratchet.py — the coverage-percentage ratchet

Kind Name Line Description
function test_fixture_reports_exact_75_percent 73
function test_at_baseline_is_ok 84
function test_above_baseline_is_ok_with_positive_delta 103
function test_below_baseline_fails_with_negative_delta 122 The exact regression-detection case: a baseline recorded at 80% and
function test_epsilon_absorbs_float_jitter_not_real_drops 144 A --min just inside the epsilon band of the real 75.00% must pass;
function test_no_report_produced_exits_2 181 A --tests target that does not exist makes pytest error out before
function test_run_coverage_in_process_returns_parsed_totals 203
function test_main_in_process_exit_codes 217 Drive main() directly (real sys.argv, restored after) so the ratchet
function test_run_coverage_missing_report_returns_none 269