PyCharm
 
Get PyCharm

Running with coverage

Last modified: 08 October 2024

PyCharm provides a dedicated action for performing run with the code coverage measurement. The code coverage data is processed according to the option selected on the Coverage page of the Settings dialog (CtrlAlt0S) .

If the Show options before applying coverage to the editor checkbox has been selected in Settings CtrlAlt0S | Build, Execution, Deployment | Coverage, a dialog appears where you can choose whether you want to replace the active coverage suites, add the collected data to the active suites, or not apply coverage data. You can also opt to skip this dialog in the future. In case any other option has been selected, the respective action will be performed silently.

Options before applying coverage to the editor

Now you can explore the collected coverage data in the Coverage tool window, the Project tool window, and in the editor.