Comments (6)
Already implemented and released: #4
from pytest-cov.
If you are already using using the new version, please give me more details, so we can work this out :) A failing test case would be the best.
from pytest-cov.
Well, that's embarrassing. The new version does fix this. I didn't try upgrading because I looked at the latest code on GitHub, and although I saw the pytest_load_initial_conftests
hook, it still looked to me like the actual start of coverage measurement didn't happen until the pytest_sessionstart
hook in CovPlugin
. But I guess pytest_sessionstart
must fire earlier than I realized, at least in the non-distributed case?
In any case, thanks for having already fixed this, and sorry for the noise :-) Feel free to close.
from pytest-cov.
Only slave coverage is started in pytest_sessionstart
. Default coverage and coverage from the master in distributed case are actually started from pytest_load_initial_conftests
in CovPlugin.__init__
from pytest-cov.
BTW, I know the code is badly structured, that's for legacy reasons. I'm the maintainer for just a few months now. I'm planning a bigger rewrite but that's still in my head right now...
from pytest-cov.
I see it now. Still don't know I missed the calls to start
in CovPlugin.__init__
.
Thanks for picking up maintenance of pytest-cov!
from pytest-cov.
Related Issues (20)
- PyO3 error HOT 1
- cov-config file argument ignored when tox.ini exists HOT 1
- [docs] Delete AppVeyor mentions
- [docs] Merge overview/readme and index documents in Sphinx
- [docs] Switch to Furo
- [FR] Extend pytest mark/fixture to auto-apply `# pragma: no cover`
- Pytest and pytest-cov reload numpy HOT 1
- Remove usage of deprecated `rsyncdir`, which will be removed in pytest-xdist 4.0 HOT 2
- Ignore partial lines in the coverage report percentage HOT 3
- Strange BSD License mapping for pytest_cov-2.7.1-py2.py3-none-any.whl HOT 1
- no-data-collected under unix when using filterwarnings in pytest.ini HOT 4
- Memory Leak Python 3.12.2 HOT 13
- GitHub Actions failures on Python 3.8 and 3.9 on pytest81-xdist350-coverage74 (windows) HOT 1
- coverage starts too late when a plugin imports the project under test HOT 5
- "Fail under check" is failing because of ignoring the precession config
- Pytest-watch with coverage (If not existent)
- Coverage both says its 100% and 0% when no code lines are found, fails
- Error combining coverage when running with pytest-xdist and a custom coverage plugin HOT 3
- condition was never false HOT 2
- Is it possible to add cov-warn-under option? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-cov.