line coverage
The share of lines or statements in your code that the tests executed at least once.
In more detail
It is what the Stmts, Miss and Cover columns of a coverage.py report count. A line can be covered without being checked, so a hundred per cent line coverage says nothing about whether the answers were right.
Related terms
- code coverage — A measurement of which parts of your code ran while the tests ran.
- branch coverage — A measurement of whether each decision in the code, such as an if statement, was taken both ways during the tests.
Taught in
- Coverage: Diagnostic, Not Target — Automated Testing, TDD & Quality Engineering