Condition Coverage criteria(CC) in software testing

Condition Coverage criteria(CC) for software testing

According to Condition Coverage (CC) criteria every condition must be covered. Its means that each condition must have at least one True and one False value. Condition coverage and decision coverage have no subsumption relationship.

Condition C1Condition C2
TDon’t Care
FDon’t Care
Don’t CareT
Don’t CareF

Table 1: C1 and C2 both have at least one T and one F value.

Programming example:

void main (int a, int b)


if(a<b && a+b<20)


Cout<<”welcome to our tutorials website”<<endl;


cout<<”welcome to”<<endl;



cout<<”Thank you for your time on our website”<<endl;


Test Requirements:

If all test requirements were met, then we can say that we have correctly performed CC criteria.

1TDon’t careDon’t care
2FDon’t careDon’t care
3Don’t careTDon’t care
4Don’t careFDon’t care
5Don’t careDon’t careT
6Don’t careDon’t careF

Now, we can generate test cases from these test requirements.

TC#Test CaseC1C2C3T.R met
1(7,8)TTT1, 3, 5

Some facts about Condition Coverage criteria (CC)

  1. CC ensures that all conditions must have at least one T and one F value.
  2. CC is weaker than CDC.
  3. CC is weaker than MCDC.
  4. CC is weaker than MCC.