Skip to content
Latchkey

Line Coverage - CI/CD Glossary Definition

Line coverage counts how many source lines executed during tests, divided by the total executable lines.

Line coverage is the fraction of executable source lines that ran at least once during the test suite. It is the most common and easiest coverage metric to report.

Line coverage is simple to read but coarse: a single line with a conditional can be counted as covered even when only one path through it ran.

In CI

Line coverage is the default number most reporters show. Pair it with branch coverage to avoid a false sense of thoroughness.

Related guides

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