Code Coverage

Code coverage measures the number and kind of source code lines examined by automated tests

Snippet from Wikipedia: Code coverage

In computer science, code coverage is a percentage measure of the degree to which the source code of a program is executed when a particular test suite is run. A program with high test coverage has more of its source code executed during testing, which suggests it has a lower chance of containing undetected software bugs compared to a program with low test coverage. Many different metrics can be used to calculate test coverage. Some of the most basic are the percentage of program subroutines and the percentage of program statements called during execution of the test suite.

Test coverage was among the first methods invented for systematic software testing. The first published reference was by Miller and Maloney in Communications of the ACM, in 1963.


  • test/code_coverage.txt
  • Last modified: 2022/08/14 13:58
  • by Henrik Yllemo