Code Coverage - CI/CD Glossary Definition
Code coverage measures how much of the code the tests exercise, by line, branch, statement, or function.
Code coverage measures what fraction of the code was exercised by the test suite, reported as line, branch, statement, or function coverage. High coverage indicates tested code but not correct tests.
Coverage types differ: branch coverage is stricter than line coverage because it requires both sides of each conditional to run. Coverage is a signal, not a goal.
Coverage types
Line coverage counts executed lines, statement counts statements, branch requires each conditional path, and function counts invoked functions. Branch is the strictest common metric.
Related guides
Coverage Gate - CI/CD Glossary DefinitionCoverage Gate: A coverage gate is a CI rule that fails the build if code coverage falls below a set threshold…
Mutation Score - CI/CD Glossary DefinitionMutation Score: A mutation score is the percentage of injected code changes (mutants) that a test suite detec…
Test Pyramid - CI/CD Glossary DefinitionTest Pyramid: The test pyramid is a heuristic that recommends many fast unit tests at the base, fewer integra…