Finding untested code with code coverage

During the code coverage review, you surely noticed a fair amount of untested code. For this tutorial, you will focus on one particular section.

To locate uncovered code:

  1. First, select the menu item File->Save Project

  2. If necessary, select the Code Coverage tab.

  3. In the Report Window on the left-hand side of the screen, open the PhoneNumber.java node, then open the baseStation.PhoneNumber node, and then left-click the remove_digit() method.

This function has not been covered at all. You will achieve this coverage via component testing.