Skip to content
Latchkey

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

Run this faster and cheaper on Latchkey managed runners. Start free →