Google News
logo
JUnit - Interview Questions
Define code coverage. What are the different types of code coverages?
The extent to which the source code is unit tested is called coverage. There are three types of coverage techniques, they are :
 
* Statement coverage : This ensures that each statement/line in the source code is executed and tested.
* Decision coverage : This ensures that every decision point that results in true or false is executed and run.
* Path coverage : This ensures that every possible route from a given point is run and tested.
Advertisement