Importing JaCoCo code coverage results

You can import Java code coverage results generated by JaCoCo into the Code Coverage Results view.

Procedure

  1. Open the Code Coverage Results Import wizard in one of the following methods:
    • Click the result location that you want to import the result to. Then click the Import icon (Red alert) on the toolbar of the Code Coverage Results view.
    • Right-click the result location that you want to import the result to and then select Import from the context menu.
  2. On the Results format page, select JaCoCo and click Next.
  3. On the JaCoCo File Selection page, specify the information needed to import JaCoCo coverage data.
    • In the Data Execution Files field, specify the directory that contains the *.exec files with the JaCoCo results. You can also use Browse to find the directory.
    • In the Class Files field, specify the directory that contains the Java™ *.class files that correspond to the JaCoCo execution files. You can also use Browse to find the directory.
    • Optionally, specify a directory in the Source Files field for the *.java files that correspond to the JaCoCo execution files. You can also use Browse to find the directory. If not specified, source will not be included in the imported code coverage report.
    • Optionally, specify the source file encoding in the Encoding field. If no encoding is specified, UTF-8 is used as the default.
  4. Click Finish to complete the import.

Results

A .cczip file that contains all files in the directory is generated and displayed in the selected location of the Code Coverage Results view.