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
Branch Coverage - CI/CD Glossary DefinitionBranch Coverage: Branch coverage measures whether both the true and false outcomes of every decision point (i…
Path Coverage - CI/CD Glossary DefinitionPath Coverage: Path coverage requires that every possible route through a function (each unique combination o…
Test Coverage - CI/CD Glossary DefinitionTest Coverage: Test coverage is the percentage of your code (lines, branches, or functions) that is executed…