Measuring code coverage
At its lowest level, white-box testing involves stepping through lines of code to design test cases for them. The development team often writes the unit tests themselves. As such, I won’t go into detail on their implementation, but as a tester, you can still check their design and coverage. There are nine major measures of code coverage:
Coverage type |
Detail |
|
1 |
Function |
Function coverage ensures that every function has been called at least once. |
2 |
Statement |
Statement coverage checks that each line of the program has been run at least once. |
3 |
Decision |
Decision (or branch) coverage ensures that each logical branch of a program has been run at least once... |