Skip to content

mark/fixture to turn coverage recording off #78

@The-Compiler

Description

@The-Compiler

I don't know how feasible this is, but it'd be nice to have a mark and/or contextmanager-fixture to turn coverage collection off:

@pytest.mark.coverage_disabled
def test_foo():
    # do some integration test or whatever
    pass

def test_bar(coverage):
    with coverage.disabled():
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions