summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-11-07 18:13:52 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-11-08 07:20:46 -0500
commit886292408b1363fdf62bd473ec45f9596aae8a67 (patch)
treed842aaf86b37c42d3527207df1ee8adf9e84316a /igor.py
parentb40e3c89d264c021a29db90dcfd3ab58f3f8ab0e (diff)
downloadpython-coveragepy-git-886292408b1363fdf62bd473ec45f9596aae8a67.tar.gz
test: simplify the metacov flow a bit
- default COVERAGE_METAFILE=.metacov for convenience - don't make json and xml reports, if we need them we'll do it explicitly.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/igor.py b/igor.py
index a21fb39b..d78dff98 100644
--- a/igor.py
+++ b/igor.py
@@ -210,18 +210,15 @@ def run_tests_with_coverage(tracer, *runner_args):
def do_combine_html():
- """Combine data from a meta-coverage run, and make the HTML and XML reports."""
+ """Combine data from a meta-coverage run, and make the HTML report."""
import coverage
os.environ['COVERAGE_HOME'] = os.getcwd()
- os.environ['COVERAGE_METAFILE'] = os.path.abspath(".metacov")
cov = coverage.Coverage(config_file="metacov.ini")
cov.load()
cov.combine()
cov.save()
show_contexts = bool(os.environ.get('COVERAGE_DYNCTX') or os.environ.get('COVERAGE_CONTEXT'))
cov.html_report(show_contexts=show_contexts)
- cov.xml_report()
- cov.json_report(pretty_print=True)
def do_test_with_tracer(tracer, *runner_args):