PyCharm 2020.2 Help

Generating code coverage report

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 where the generated report will be stored, and optionally select the Open generated HTML in browser checkbox.

  3. Click Save.

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 PyCharm suggests the previously used location.

Last modified: 19 August 2020