Generating a PDF report

You can export code coverage results by generating a PDF report.

Procedure

  1. In the Code Coverage Results view, select the file that you want to export, right-click and select Export.
    When you select multiple files, the results are merged and then exported as a single file.
    The figure shows the Export option in Code Coverage Result view.
  2. In the Coverage Result Export dialog box that opens, select PDF from the Export Format drop-down list.
    PDF format option.
  3. Specify the Destination folder that you want to store the exported files.
    By default, the report is saved to a CC directory in system users' home directory.
    Note: The destination folder must be a valid path. If you specify an invalid path, you will see a warning in the view. The export wizard will remember the destination folder that you specify so you do not need to specify it again next time.
  4. Enter the result file name or use the default name.
    Note:
    The file extension will be automatically added based on the format that you select for exporting the results.
    Destination folder field and the field to enter the result file name.
  5. Specify a filter and whether the filter is a regular expression. Specifying a filter generates a result that includes only executable lines that match the specified filters.
    The Filter filed and the Regular expression checkbox.
  6. Optional: If the Settings button is enabled, you can select to further change the PDF export properties.
    For more information, see Setting PDF Properties.
  7. Optional: Select the Open PDF upon completion checkbox to open the generated PDF report automatically with the default PDF viewer on your system upon completion.
  8. Optional: Select the Add Location to Code Coverage Results View checkbox to add the export directory as a result location to the Code Coverage Results view.
  9. Click Finish to export the results.

Results

When the result exporting is done, you can find the PDF report in the destination folder that you specify.