PyCharm makes it possible to configure the various aspects of code coverage measurement. In this section:

  1. Open the Coverage page of the Settings dialog.
  2. Click one of the radio buttons to define how the collected coverage data will be processed.
  3. If you want the Coverage tool window to open automatically on running an application or test with coverage, make sure that the corresponding check box is selected.
  4. Select the check box to specify which of the coverage tools you want to use - the one bundled with PyCharm, or included in the active Python interpreter.
  1. Open the Editor - Colors and Fonts page of the Settings dialog.

    Alternatively, just click settingsCoverage in the statistics pop-up.

  2. Expand Colors and Fonts node, and select General.
  3. In the list of textual components select the required type of coverage, and then choose the desired colors:

    coverageColors

See Also

Concepts:

Procedures:

Reference:

Web Resources: