Condition Coverage Metric

Condition Coverage Metric

Condition Coverage Metric Definition

The Condition Coverage Metric is like Decision Coverage, except that the decisions are split into elementary subexpressions (or conditions) that are connected by AND or OR operators. The coverage of a program is the number of executed statement blocks and conditions divided by the total number of them. Here each condition counts twice, which may result in a large number of possible outcomes in a complex decision.

Alternative Naming

This metric is also known as predicate coverage.

Limitations

Note that 100% condition coverage does not guarantee full decision coverage. See Modified Condition/Decision Coverage (MC/DC) for a metric that overcomes this limitation.