Code Coverage Tab

Use this tab to set code coverage options for debug configurations.

Notes:
  • The Code Coverage tab appears only when you select the debug profile from the Compiled Code Coverage Configurations dialog. To open the Compiled Code Coverage Configurations dialog, click the Compiled Code Coverage button from the main workbench toolbar.

Fields

Code coverage level: Choose the code coverage level: Line or Program flow.

Report: Choose to automatically generate an additional PDF code coverage report.

Additional: Choose these additional options:
  • Use source for COBOL: Select this option when you run code coverage sessions with COBOL V6.2 and later applications to use the source instead of the expanded source.
  • Ignore errors: Select this check box to force code coverage to produce a report, regardless of error conditions.
  • Generate PDF report: Select this checkbox to automatically generate an additional PDF code coverage report.
  • Filter list file: Select the checkbox to enable the field to specify a file that contains filter strings. These filters can be used to include or exclude modules, parts or complied units, and files from code coverage results. For more information, see Filtering code coverage results during collection.
  • Root: Specify a directory name or a fully qualified path in the Root field to define the root location for source files included in the code coverage result.
    • Specify a directory name to set the top-level directory for the source files.
    • Specify a fully qualified path to remove the specified path from the source file paths.
    For example, if you export a result that contains source files located at:
    /home/user/projectA/programA.cbl
    Then, you must specify either "projectA" or "/home/username" in the Root field. The exporter will output a code coverage result with the source file referenced using a relative path:
    projectA/programA.cbl
  • Test ID: To assign a test ID to the code coverage result, specify a string of alphanumeric characters.
  • Tags: Specify a list of tags to associate with the code coverage result. Separate multiple tags with commas.