You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run our tests with pytest-xdist, our entire tests about 1035 of them gets done in less than 35min
However, when we use pytest-cov it takes upto 1hr:15min which is tremondous.
I understand this is also due to the fact that the code instrumentation process of tracking the code takes some amount of time but this feels pretty exorbitant.
I also tried to install the python3-dev package but this does not seem to help as well
pytest-cov is just a thin wrapper around coveragepy, it can't magically make coveragepy fast. I think that newer CPython versions will have better line tracing APIs that coveragepy could eventually make use of. But as it is, this issue does not have any evidence of being related to this plugin.
Activity
KristianOellegaard commentedon Jan 20, 2025
I'm experiencing the same thing after moving our tests to run inside a docker container. I suspect Docker might be the problem.
webknjaz commentedon Aug 18, 2025
pytest-cov is just a thin wrapper around coveragepy, it can't magically make coveragepy fast. I think that newer CPython versions will have better line tracing APIs that coveragepy could eventually make use of. But as it is, this issue does not have any evidence of being related to this plugin.