Skip to content

Static coverage contexts #689

Open
@tkukushkin

Description

@tkukushkin

Hi!

I use coverage contexts mainly to distinguish coverage from different tox environments with different python version and sometimes different libraries versions.

coverage.py allows it by adding --context {envname} in tox.ini.
On the other hand, pytest-cov only support dynamic contexts with --cov-context=test.

It would be useful if pytest-cov allowed to set static context name through CLI options.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions