IntelliJ IDEA 2021.1 Help

Save coverage data to a file

Generate the report

  1. From the main menu, select Run | 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 in which the generated report should be stored, and optionally select the Open generated HTML in browser checkbox.

    If there are several projects opened in the same window, make sure that the suggested output directory is correct.

  3. Click Save.

    Generating code coverage report

Last modified: 08 March 2021