Test coverage


Test coverage

(testing)A measure of the proportion of a program exercisedby a test suite, usually expressed as a percentage. Thiswill typically involve collecting information about whichparts of a program are actually executed when running the testsuite in order to identify which branches of conditional statements which have been taken.

The most basic level of test coverage is code coverage testing and the most methodical is path coverage testing.Some intermediate levels of test coverage exist, but arerarely used.

The standard Unix tool for measuring test coverage istcov, which annotates C or Fortran source with theresults of a test coverage analysis. GCT is a GNUequivalent.