django_coverage_plugin
django_coverage_plugin copied to clipboard
Ignoring coverage for some branches
trafficstars
Hello,
Is it possible to ignore branches within the templates?
- Otherwise is this something that's on the drawing board?
I haven't tried to use coverage.py's ability to exclude code.
If you want to experiment you could try adding {# pragma: no check #} comment on the {% else %} part of a template branch.
You can learn more from the applicable coverage.py docs