To produce code coverage statistics during the test run, you must first compile the source application (the project that contains the code to be tested) with code coverage enabled.
The Properties for AirportDemo dialog box appears.
Code coverage is enabled for the AirportDemo project.
The Run Configurations dialog box appears.
The details for the run configuration appear in the right-hand pane.
Code coverage is enabled for the run configuration used to run the tests.
The test case runs and produces some code coverage statistics.
The code coverage details are displayed in the Code Coverage view, grouped under each program name in the AirportDemo project.
As you can see, the test run did not cover much of the source code. Take note of the distance-between-airports section, as we will enhance the test to run this section, and will see different results after the next test run.