Lesson 2 of 4 · Combinatorial coverage denominators
Count the combinations
16 minute lesson · 3 checks along the way
Your goal for this lessonCalculate single-factor, pairwise and full-configuration coverage without confusing their denominators.
In this lesson 3 sections · 3 checks
Read & understand
There are several kinds of coverage
Three binary factors produce 2 × 2 × 2 = 8 complete configurations: 000, 001, 010, 011, 100, 101, 110 and 111. A full-configuration test suite includes every one. But the six individual conditions—I=0, I=1, T=0, T=1, R=0 and R=1—can all appear in only two rows, 000 and 111. Covering the six individual conditions is therefore much weaker than covering all eight complete configurations.
For pairwise coverage, first choose a pair of factors: IT, IR or TR. Each pair has four possible value combinations, 00, 01, 10 and 11. There are 3 × 4 = 12 distinct pair-value conditions. The pair’s identity is part of the condition: IT=01 and IR=01 count separately, because they describe different simultaneous task states.
Three different coverage denominators
Original unrestricted binary classroom model. Counts refer to distinct conditions, not execution counts or failure probabilities.
Open full-size diagram in a new tab: Three different coverage denominatorsRead diagram data as a table
| Coverage strength | Calculation | Distinct conditions |
|---|---|---|
| Individual | 3 × 2 | 6 |
| Pairs | 3 × 4 | 12 |
| Complete configurations | 2 × 2 × 2 | 8 |
Original unrestricted binary classroom model. Counts refer to distinct conditions, not execution counts or failure probabilities.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Count a one-at-a-time plan
Consider the four rows 000, 100, 010 and 001. Every factor appears at both zero and one. For IT, the observed pairs are 00, 10, 01 and 00, so only three distinct values are covered. The repeated 00 adds no new pair condition. The same reasoning gives three values for IR and three for TR: nine of twelve pair conditions altogether.
The missing conditions are IT=11, IR=11 and TR=11. Enabling each task separately never exercises two enabled tasks together. Four completed tests can therefore cover every individual factor value while missing a quarter of the pair-value conditions. This is a statement about what the plan includes, not a probability that the system will fail.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Duplicates and denominators
Adding another 000 run makes five runs but still only nine distinct pair conditions. Repetition can be useful when outcomes vary, but it does not fill a missing combination. In our deterministic model, separate the number of executions from the number of distinct conditions they exercise.
A report of “100 percent covered” needs a denominator. Six of six individual conditions, twelve of twelve pair conditions and eight of eight complete configurations are three different claims. Record the factor definitions, permitted values and coverage strength so another person can reconstruct what the percentage means.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.