PyCharm 2023.2 Help

Generating code coverage report

Generate the report

  1. Go to 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.

Last modified: 07 September 2023