Multiple Condition Coverage (MCC) in software testing

Multiple Condition Coverage (MCC) in software testing

According to Multiple Condition Coverage criteria, all combinations of truth values of conditions must be covered.

Total Test cases will be 2n. It means that if we have two conditions than n=2 so 22=4 test cases and if we have three conditions than 23= 8 test cases.

Condition C1 Condition C2 Decision D1
T T T
T F F
F T F
F F F

Table 1: C1 and C2 both are covered.

Now, we can see in table 1 that all combinations of conditions are covered because;

C1 T is tested with C2 T.

C1 T is tested with C2 F.

C1 F is tested with C2 T.

C1 F is tested with C2 F.

MCC= MCC stands for Multiple condition Coverage.

MCDC= MCDC stands for Modified Condition Decision Coverage.

CDC= CDC stands for Condition Decision Coverage.

CC= CC stands for condition Coverage.

DC= DC stands for Decision Coverage.

Some facts about Multiple Condition Coverage (MCC)

Multiple Condition Coverage (MCC) subsumes MCDC. So it leads to the followings;

MCDC subsumes CDC.

CDC subsumes CC and DC.

It means that if we performed MCC testing, then no need to perform MCDC, CDC, CC, and DC.

MCC is more strong than MCDC.

MCC is more strong than CDC.

MCC is more strong than CC.

MCC is more strong than DC.