Skip to content

TST/DEP: drop pytest-cov as a test dependency #18878

Open

Description

@neutrinoceros

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

Activity

  1. pllim commented on Nov 11, 2025

    @pllim
    Member

    Hmm has coverage evolved to the point we no longer need pytest-cov, or we never really needed it to begin with?

  2. neutrinoceros commented on Nov 11, 2025

    @neutrinoceros
    ContributorAuthor

    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.

  3. pllim commented on Nov 11, 2025

    @pllim
    Member

    I guess things must have evolved.

    Fun fact: We used to bundle pytest when it was just a single Python file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions