-
Notifications
You must be signed in to change notification settings - Fork 36
plugin not working with pytest #73
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
Comments
I started having this problem locally in my development environment (using |
@jnoortheen: Can you check whether your Django |
@mschoettle I think that is my case too. The tests are always ran with DEBUG=False. I haven't checked with |
I had the same issue using pytest (0% coverage reported for everything) - as suggested above, setting Django However I was under the impression that running tests with EDIT: ah, it seems that the requirement is for DjangoTemplates 'debug' option to be True:
and the reason the main Django |
The real issue here (I think) is that Perhaps the note which #30 added to the "Changes" section of README.rst
should be included in the main README, given that this is now archived away in HISTORY.rst so there is no mention of the template debugging requirement in the readme? |
there is this PR #72 without much activity |
I can definitely add the note to the README. But I'd also be interested in making the warning visible in pytest. Can you give me a small project that demonstrates the problem? |
The README is updated in 3b7972f, and coverage.py will also now show the warning when running under pytest (as of nedbat/coveragepy@30c023b). |
Thanks for this great plugin. Now we don't have to worry about missing logic inside templates. I am not able to get it working with
pytest
.I execute the tests like this
But the report always show 0% coverage for all the templates in the project.

has anyone used this plugin with pytest runner? am I missing something?
The text was updated successfully, but these errors were encountered: