question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mark/fixture to turn coverage recording off

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
ionelmccommented, Nov 24, 2017
2reactions
The-Compilercommented, Oct 15, 2015

I agree with @nicoddemus - pytest.mark.no_cover makes the most sense IMHO.

Read more comments on GitHub >

github_iconTop Results From Across the Web

California Rules of Court: Title One Rules - California Courts
(1) "Media coverage" means any photographing, recording, or broadcasting of court ... This rule does not prohibit courts from photographing or videotaping ...
Read more >
Change the camera's video recording settings on iPhone
To turn Enhanced Stabilization off, go to Settings > Camera > Record Video, then turn off Enhanced Stabilization. See alsoRecord videos with your...
Read more >
How to Set Up Recordings - Hotjar Documentation
The traffic coverage widget shows you information about your daily session capture settings, which apply to both Recordings and Heatmaps.
Read more >
PART 29. Electronic Recording And Audio-visual Coverage In ...
Electronic Recording And Audio-visual Coverage In Court Facilities And Of Court ... (1) there will be no detraction from the dignity or decorum...
Read more >
Court Media Coverage Guidelines - City of Phoenix
Rule 122 regulates the use of recording devices in a courtroom, ... requesting permission from the court to record judicial proceedings, or to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found