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
{{ message }}
Repository navigation
TST/DEP: drop pytest-cov as a test dependency #18878
Part of #18782
The motivation is essentially the same as #18783: cut the middle man and use coverage directly, eliminating a direct dependency (and transitive ones that may come with it).
Completely ridding ourselves of this plugin requires #18783, but we can also stop using it even if it's still installed.
Note that pytest-cov is documented as the way we do things, so this change also requires updating the documentation
I really don't know what motivated this decade-old choice, maybe it made sense at the time, but for my part, having never needed pytest-cov in projects I setup myself, I regard it as an annoyance; I just don't see the value it's supposed to provide, but I do see the costs associated with any dependency.
Activity
pllim commentedon Nov 11, 2025
Hmm has coverage evolved to the point we no longer need pytest-cov, or we never really needed it to begin with?
neutrinoceros commentedon Nov 11, 2025
I really don't know what motivated this decade-old choice, maybe it made sense at the time, but for my part, having never needed pytest-cov in projects I setup myself, I regard it as an annoyance; I just don't see the value it's supposed to provide, but I do see the costs associated with any dependency.
pllim commentedon Nov 11, 2025
I guess things must have evolved.
Fun fact: We used to bundle pytest when it was just a single Python file.