Code Coverage Report view

The Code Coverage Report view provides a summary (in XML) of your session. The view lets you drill down into your project and see the coverage for individual files and functions:

Screen showing the Code Coverage Report view.

Generating a report

To generate a report, simply right-click a coverage session and select Generate Report.

By default, the IDE shows reports in the Code Coverage Report view, but you can also have the IDE show reports in an external browser. Using an external browser lets you compare several reports simultaneously.

Changing views

To toggle between viewing reports in the Code Coverage Report view and in an external browser:

  1. Open the Preferences dialog ( Window > Preferences ).
  2. In the left pane, select General > Web Browser .
  3. In the right pane, enable or disable the Use external Web browser check box.
  4. Click OK.

Saving a report

To save a report:

  1. Right-click in the Code Coverage Report view to show the context menu.
  2. Click Save As... to save the report.

Refreshing a report

To refresh a report:

  1. In the Code Coverage Report view's title bar, click the Refresh button (The Refresh icon. ).

Printing a report

To print a report:

  1. In the Code Coverage Report view's title bar, click the Print button (The Print icon. ).

Setting report options

By default, the report generated by the IDE doesn't include the code coverage information from other included files; however, you can choose to view this information, if desired.

  1. Select Window > Preferences .
  2. In the left pane, expand QNX and select Code Coverage.
  3. In the right pane, select Show code coverage information from included files.
  4. Click OK.