Kill flaky tests
Run your test suite repeatedly, collect every intermittent failure, and fix or quarantine flaky tests until you get five consecutive green runs.
Implementation note
Best run on a branch so quarantine decisions can be reviewed. Expect a long session on large suites; the 5-consecutive-green condition is the exit gate.
Source: ericzakariasson ↗graded C · 55/100 — how grades work (Safety Score v2) →
Similar loops
All testing loops →Fix the flaky checkout test
Run checkout tests repeatedly until 20 consecutive passes, logging failure modes and hypotheses after each iteration.
Reach a coverage target
Add focused tests for the least-covered files and re-measure each turn until coverage hits 80 percent or the turn cap.
The product contract conformance loop
A requirements-conformance workflow that turns a product contract into a ledger, checks current evidence, and repairs only confirmed mismatches with regression coverage.