Run coverage of your Django test suite...

Since there is a 4-year old still-open ticket on this, thought I'd provide a simple recipe for getting a coverage report on your Django project:

pip install coverage
coverage run path/to/django-admin.py test myapp
coverage report -m --include="*myapp*"
coverage erase # clean up afterward/between runs

Sure, it's not --with-coverage, but it does seem to work.

Comments

Comments are closed.

Pingbacks

Pingbacks are closed.