Skip to content

Backward/forward compatibility with coverage 4 #1035

Closed
@gaborbernat

Description

@gaborbernat

Hello,

virtualenv still wants to test with python 3.4, which translates to coveragepy 4. The idea here would be to use the fancy new features on newer pythons (e.g. dynmaic context for test suit) but still run on older/support dropped version. At the moment though coverage 4/5 cough and fail if they find any configurations that are not defined. This means that coverage.py 5 only configuration cannot be set within the config file, because that will fail run when running under coverage 4. Not all configuration can be set from the CLI though, e.g. dynamic_context, cannot be:

https://coverage.readthedocs.io/en/coverage-5.2.1/contexts.html#dynamic-contexts

Any ideas how to support such use case? Does coveragepy must fail if it finds configurations not defined? This means in practice that as soon as someone introduces a configuration that's new everyone is forced to upgrade coveragepy. Is this the intended behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions