Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring coverage for some branches #45

Open
Skeen opened this issue May 10, 2017 · 1 comment
Open

Ignoring coverage for some branches #45

Skeen opened this issue May 10, 2017 · 1 comment

Comments

@Skeen
Copy link
Contributor

Skeen commented May 10, 2017

Hello,

Is it possible to ignore branches within the templates?

  • Otherwise is this something that's on the drawing board?
@PamelaM
Copy link
Collaborator

PamelaM commented Oct 18, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants