django_coverage_plugin icon indicating copy to clipboard operation
django_coverage_plugin copied to clipboard

Ignoring coverage for some branches

Open Skeen opened this issue 8 years ago • 1 comments
trafficstars

Hello,

Is it possible to ignore branches within the templates?

  • Otherwise is this something that's on the drawing board?

Skeen avatar May 10 '17 09:05 Skeen

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

PamelaM avatar Oct 18 '17 18:10 PamelaM