IntelliJ IDEA 2019.2 Help

Generating code coverage report

Generate the report

  1. From the main menu, select Analyze | Generate Coverage Report, or click the Generate Coverage Report button in the Coverage tool window.

    Note that this option becomes available only after you run the necessary tests with coverage.

  2. In the Generate Coverage Report dialog, specify the directory where the generated report will be stored, and optionally select the Open generated HTML in browser checkbox.

  3. Click Save.

    Generating code coverage report

Note that if you are going to save a code coverage report for one of the multiple projects opened in the same window, it is important to check the suggested target location, because IntelliJ IDEA suggests the previously used location.

Last modified: 17 October 2019