IT lexicon › Programming › Code coverage

Code coverage

Programming På svenska → Updated: 2026-05-23

Measure of how much of the code is executed by tests — typically given as a percentage.

Line, branch, function coverage. 80% is a popular threshold. High coverage ≠ good tests (you can test the wrong things). Tools: Istanbul (JS), pytest-cov, JaCoCo. A great supplementary signal, a poor sole metric.

← Back to the lexicon