Definition/ Use |
Extent of test cases used to test a program or program portion. It is to be differentiated between the coverages C0 to C7, whereby the most common test coverages are C0, C1 and C2.
-
C0: Each statement is tested at least once.
-
C1: Each program branch is tested at least once ( e. g. the conditional statement if ... then ... endif requires two test cases).
-
C2: Every single condition of combined conditions in conditional statements is tested (true, false).
- C7: Every program path is tested. (If there are loops this is not practical since this results in too many test cases).
|