Skip to content

Commit bb78d7e

Browse files
committed
test: when we measure our coverage, get a json report also
1 parent 79f832f commit bb78d7e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.coverage
99
.coverage.*
1010
coverage.xml
11+
coverage.json
1112
.metacov
1213
.metacov.*
1314
*.swp

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ clean: clean_platform ## Remove artifacts of test execution, i
2222
@rm -f *$$py.class */*$$py.class */*/*$$py.class */*/*/*$$py.class */*/*/*/*$$py.class */*/*/*/*/*$$py.class
2323
@rm -f coverage/*,cover
2424
@rm -f MANIFEST
25-
@rm -f .coverage .coverage.* coverage.xml .metacov*
25+
@rm -f .coverage .coverage.* coverage.xml coverage.json .metacov*
2626
@rm -f .tox/*/lib/*/site-packages/zzz_metacov.pth
2727
@rm -f */.coverage */*/.coverage */*/*/.coverage */*/*/*/.coverage */*/*/*/*/.coverage */*/*/*/*/*/.coverage
2828
@rm -f tests/covmain.zip tests/zipmods.zip tests/zip1.zip

Diff for: igor.py

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def do_combine_html():
200200
show_contexts = bool(os.environ.get('COVERAGE_DYNCTX') or os.environ.get('COVERAGE_CONTEXT'))
201201
cov.html_report(show_contexts=show_contexts)
202202
cov.xml_report()
203+
cov.json_report(pretty_print=True)
203204

204205

205206
def do_test_with_tracer(tracer, *runner_args):

0 commit comments

Comments
 (0)