question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plugin not working with pytest

See original GitHub issue

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

image

But the report always show 0% coverage for all the templates in the project. image

has anyone used this plugin with pytest runner? am I missing something?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jnoortheencommented, Apr 26, 2021

there is this PR https://github.com/nedbat/django_coverage_plugin/pull/72/ without much activity

0reactions
nedbatcommented, May 31, 2021

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found