Exporting code coverage statistics from your workbench

You can export coverage data files that were generated from your workbench.

About this task

By exporting code coverage data generated from the workbench, you can share the results between workbenches and also can analyze them by using the tools available from system command line.

Procedure

  1. Click File > Export > Code Coverage > Code Coverage Data File.
  2. Select the artifacts to export:
    • Coverage Data: It is the file with the .coveragedata file name extension. This file contains the code coverage data.
    • Project Baseline: It is the file with the .baseline file name extension. This file contains the information of the structure of the code base, such as the structure of the packages, classes, variables, and methods. So this file contains the structure of the Java Project.
    • Launch Filter: It is the file with the .filters file name extension. The file is used by the workbench that contains the filter information of the project used to launch code coverage.
    • Probe Script: It is the file with the .probescript file name extension. This file contains information on the filters set of the specific packages and classes of which coverage data needs to be obtained.
  3. Select the export as archive file check box. Code Coverage archive export captures all available code coverage artifacts including project source code if Save Source is enabled. The export would output a zip file, which can be sent to other tools to further analyze the code coverage result. If Save Source is not enabled and you want the export to include the source, you will have to enable the Save Source option in the project and re-launch again before exporting the artifacts.
  4. Specify the export Destination folder.
  5. Click Finish.

Feedback