coverage gate
A rule that fails a build when code coverage falls below a set percentage.
In more detail
A gate on the total percentage rewards tests that run code without asserting anything, because those raise the number just as well. If you want a number, watch whether coverage falls on a change rather than chasing a total.
Related terms
- code coverage — A measurement of which parts of your code ran while the tests ran.
- quality gate — A check, or set of checks, that a change must pass before it can move on, such as being merged or promoted to the next pipeline stage.
Taught in
- Coverage: Diagnostic, Not Target — Automated Testing, TDD & Quality Engineering