Monday, August 24, 2015

Django template coverage

Hi all,

If you've been using coverage measurement on your Django code, you might be interested in a new development: now you can also measure the coverage of your templates.

Coverage.py 4.0 (currently in the last stages of beta) supports plugins.  Django-coverage-plugin implements measurement of templates: https://pypi.python.org/pypi/django_coverage_plugin  

Install it, run your tests under coverage.py, and you'll see what lines in your templates are used by your tests, and which lines are not.

If you have any trouble with it, let me know,

--Ned.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/442ec3ba-ca72-40ff-a637-fd306cf9e096%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment