Fix tox coverage reporting#112
Conversation
|
The one issue I see is that it reports lines that are executed on import as being un-covered. For example, in the coverage report (if you change The pytest-cov package authors have some suggestions about measuring the coverage of a pytest plugin here: pytest-dev/pytest-cov#455 (comment) and here: https://pytest-cov.readthedocs.io/en/latest/plugins.html What do you think about an approach that runs the coverage command externally, like this? main...nickodell:pytest-run-parallel:njo-measure-coverage This changes the test coverage of |
|
Closing in favor of #113 |
Before:
With this PR:
Seems a lot nicer! Also the way it's currently configured will only get the coverage for the plugin implementation correct for an editable install. With this change it'll always be correct for all installs.