Fault Coverage - Test Coverage (computing)

Test Coverage (computing)

The term Test Coverage used in the context of programming / software engineering, refers to measuring how much a software program has been exercised by tests. Coverage is a means of determining the rigour with which the question underlying the test has been answered. There are many kinds of test coverage:

  • code coverage,
  • feature coverage,
  • scenario coverage,
  • screen item coverage
  • model coverage.

Each of these coverage types assumes that some kind of baseline exists which defines the system under test. The number of types of test coverage therefore varies as the number of ways of defining the system.

For example, in code coverage:

  • has a particular statement ever been executed?
  • how many times has a statement been executed?
  • have all the statements in a program been executed, at least once?
  • have all the decision points in the code been exercised such that every decision path has been taken?
  • has the last optimization reduced the instruction path length significantly?

Read more about this topic:  Fault Coverage

Famous quotes containing the word test:

    He who has never failed somewhere, that man can not be great. Failure is the true test of greatness. And if it be said, that continual success is a proof that a man wisely knows his powers,—it is only to be added, that, in that case, he knows them to be small.
    Herman Melville (1819–1891)