Skip to content
Latchkey

Condition Coverage - CI/CD Glossary Definition

Condition coverage checks that every boolean operand in a compound expression takes both values across the test run.

Condition coverage requires that each boolean sub-expression in a compound condition evaluates to both true and false during testing. It is finer-grained than branch coverage.

For if (a && b), branch coverage only cares about the overall result, while condition coverage tracks a and b independently. MC/DC is a stricter variant used in safety-critical code.

Why it matters

Compound conditions can short-circuit, leaving operands untested. Condition coverage catches operands that never changed value.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →