summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-06-14 06:50:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-06-14 06:50:25 -0400
commitcb1b65a4ad1b8302304706b1775401d165486d02 (patch)
tree7c7539e9b9464c2e89aa66b870d7a1074e10d36b /igor.py
parent5914ae7eedf654eb1a89d44f71fedce9626530cb (diff)
downloadpython-coveragepy-git-cb1b65a4ad1b8302304706b1775401d165486d02.tar.gz
Make it easier for me to measure test_function contexts
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/igor.py b/igor.py
index b0ef6876..1bb7d19f 100644
--- a/igor.py
+++ b/igor.py
@@ -75,7 +75,7 @@ def should_skip(tracer):
"""Is there a reason to skip these tests?"""
if tracer == "py":
# $set_env.py: COVERAGE_NO_PYTRACER - Don't run the tests under the Python tracer.
- skipper = os.environ.get("COVERAGE_NO_PYTRACER")
+ skipper = os.environ.get("COVERAGE_NO_PYTRACER") or os.environ.get("COVERAGE_CONTEXT")
else:
# $set_env.py: COVERAGE_NO_CTRACER - Don't run the tests under the C tracer.
skipper = os.environ.get("COVERAGE_NO_CTRACER")
@@ -174,7 +174,8 @@ def do_combine_html():
cov.load()
cov.combine()
cov.save()
- cov.html_report()
+ show_contexts = bool(os.environ.get('COVERAGE_CONTEXT'))
+ cov.html_report(show_contexts=show_contexts)
cov.xml_report()