Skip to content
Latchkey

What Is a Coverage Gate?

A coverage gate is a check that compares measured test coverage against a configured minimum and fails the pipeline if coverage is too low. It can apply to the whole project or just the lines changed in a pull request. The gate makes a coverage target enforceable rather than aspirational.

Why it matters

A coverage gate stops untested code from sneaking in and gradually eroding the safety net. Scoping it to changed lines avoids penalizing a contributor for legacy gaps they did not introduce.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →