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
Branch Coverage - CI/CD Glossary DefinitionBranch Coverage: Branch coverage measures whether both the true and false outcomes of every decision point (i…
Statement Coverage - CI/CD Glossary DefinitionStatement Coverage: Statement coverage is the percentage of individual statements in the code that were execu…
Test Coverage - CI/CD Glossary DefinitionTest Coverage: Test coverage is the percentage of your code (lines, branches, or functions) that is executed…