- Software Testing Dictionary
- Home
Condition Coverage Testing
What is Condition Coverage Testing?
Condition coverage is also known as Predicate Coverage in which each one of the Boolean expression have been evaluated to both TRUE and FALSE.
Example
if ((A || B) && C) { << Few Statements >> } else { << Few Statements >> }
Result
In order to ensure complete Condition coverage criteria for the above example, A, B and C should be evaluated at least once against "true" and "false".
So, in our example, the 3 following tests would be sufficient for 100% Condition coverage testing. A = true | B = not eval | C = false A = false | B = true | C = true A = false | B = false | C = not eval
Advertisements