Skip to content

Instantly share code, notes, and snippets.

@mekicha
Created April 30, 2018 19:14
Show Gist options
  • Select an option

  • Save mekicha/d53e79b9a7bcecd39ead5a2c315d8246 to your computer and use it in GitHub Desktop.

Select an option

Save mekicha/d53e79b9a7bcecd39ead5a2c315d8246 to your computer and use it in GitHub Desktop.
Using [coverage.py](https://coverage.readthedocs.io/en/coverage-4.5.1/) for a django app

Install using pipenv

pipenv install coverage --dev

Run coverage

coverage run --source='.' manage.py test

Generate a html report

coverage html

Or if you prefer to see report on the command line

coverage report

See the docs for more

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