Branch Coverage - CI/CD Glossary Definition
Branch coverage measures the percentage of decision branches (each side of every if, switch, and ternary) that the tests exercise, a stricter metric than line coverage.
Why it is stricter
A line like if (a && b) doX(); can hit 100% line coverage with one test, yet never exercise the case where a is true but b is false. Branch coverage forces both outcomes of each condition.
In CI
Coverage tools report branches separately; setting a branch threshold catches untested error paths that line coverage hides.
Related guides
Code Coverage Threshold - CI/CD Glossary DefinitionCode Coverage Threshold: A code coverage threshold is a minimum coverage percentage the test suite must meet,…
Mutation Score - CI/CD Glossary DefinitionMutation Score: A mutation score is the percentage of injected code mutations (deliberate bugs) that a test s…
Fuzz Test - CI/CD Glossary DefinitionFuzz Test: A fuzz test feeds a program large volumes of random, malformed, or unexpected input to find crashe…