Thursday, September 24, 2015

Re: Django template coverage

This plugin won't work with Jinja2 templates, but another coverage.py plugin could be written for Jinja2, sure.  Get in touch if you want to get started on it.

--Ned.

On 9/20/15 9:45 AM, Avraham Serour wrote:
would this work with jinja2 templates also?

On Tue, Aug 25, 2015 at 3:45 AM, Ned Batchelder <ned@nedbatchelder.com> wrote:
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.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/x0cB75X4puw/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAFWa6tJj733Jv%3DWjf0jRYFOnyVnX%3D_oAavJ8URjrjU7_BDdQOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment