PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

CoverageProfessional

Last modified: 12 January 2022

File | Settings | Build, Execution, Deployment | Coverage for Windows and Linux

PyCharm | Preferences | Build, Execution, Deployment | Coverage for macOS

Ctrl+Alt+S the Settings/Preferences icon

Code coverage in PyCharm allows you to perform on-the-fly line coverage measuring for your code with low runtime overhead. In general, line coverage answers the question, "Was this line of code executed during unit testing simulation?"

Use this page to configure how coverage data is collected and processed.

For the detailed instructions on running and analyzing code coverage, see Running with coverage and Viewing code coverage results.