Skip to content

Instantly share code, notes, and snippets.

@igniteflow
Last active April 2, 2016 14:33
Show Gist options
  • Select an option

  • Save igniteflow/ab0f31b41e8416606150 to your computer and use it in GitHub Desktop.

Select an option

Save igniteflow/ab0f31b41e8416606150 to your computer and use it in GitHub Desktop.
How to show coverage in PyCharm

In a terminal:

pip install coverage coverage run --source='.' manage.py test | coverage xml # replace manage.py test with your test run command

In PyCharm go to Tools > Show Code Coverage Data (Ctrl+Shift+6) and select the generated coverage.xml file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment