Run coverage of your Django test suite...
Written by
on
in
Snaking.
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.
Pingbacks
Pingbacks are closed.
Comments
Comments are closed.