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
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: