Changes between Version 17 and Version 18 of Developer/Coverage/Theory


Ignore:
Timestamp:
Sep 14, 2009, 10:41:20 PM (10 years ago)
Author:
GlennHumphrey
Comment:

/* Decision Coverage */ Correction

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Coverage/Theory

    v17 v18  
    6464
    6565
    66 A minimum of two test cases are required to achieve 100% Decision Coverage.  One case must force the if statement to evaluate to TRUE and the other case must force the if statement to evaluate to FALSE.  It is interesting to note that 100% Decision Coverage does not necessarily produce 100% Object Coverage.  A test case that forces a TRUE outcome will either execute blocks A1 and B or A1, A2 and B.  Short-circuiting requires careful selection of the test case in order to achieve 100% Decision Coverage and 100% Object Coverage.
     66A minimum of two test cases are required to achieve 100% Decision Coverage.  One case must force the if statement to evaluate to TRUE and the other case must force the if statement to evaluate to FALSE.  A test case that forces a TRUE outcome will either execute blocks A1 and B or A1, A2 and B.  A test case that forces a FALSE outcome will execute blocks A1 and A2.
    6767= Condition/Decision Coverage =
    6868