mark/fixture to turn coverage recording off
See original GitHub issueI 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:
- Created 8 years ago
- Reactions:2
- Comments:12 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So this is it: http://pytest-cov.readthedocs.io/en/latest/markers-fixtures.html (not released yet tho)
I agree with @nicoddemus -
pytest.mark.no_cover
makes the most sense IMHO.