plugin not working with pytest
See original GitHub issueThanks 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?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
How to install and use plugins — pytest documentation
If a plugin is installed, pytest automatically finds and integrates it, there is no need to activate it. Here is a little annotated...
Read more >p plugin not working, fails to early-load plugin #4718 - GitHub
pytest --help describes an option for early-loading plugins: -p name early-load given plugin (multi-allowed). To avoid loading of plugins, use ...
Read more >pytest: how to explicitly enable a plugin in command line
To load the plugin again, use -p pytest_myplugin . This will work when chained after -p no:myplugin (either on the command-line, ...
Read more >pytest plugin — returns 0.19.0 documentation - Docs
We use special pytest plugin to improve the testing side of this project. For example: it is a popular request to ensure that...
Read more >pytest-cov - PyPI
This plugin produces coverage reports. Compared to just using coverage run this plugin does some extras: Subprocess support: you can fork or run...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
there is this PR https://github.com/nedbat/django_coverage_plugin/pull/72/ without much activity
The README is updated in 3b7972fd4087612f26894e564ee902e951392c24, and coverage.py will also now show the warning when running under pytest (as of https://github.com/nedbat/coveragepy/commit/30c023b5b74f9c798645cbb3f35362ae046a4c25).