Skip to content
Latchkey

Branch Coverage - CI/CD Glossary Definition

Branch coverage is the percentage of decision outcomes (each true and false edge of every if, loop, and switch) that the tests exercised.

Why it is stricter

A line with an if can be fully line-covered while only one branch ran; branch coverage forces tests to hit both outcomes.

Related guides

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