Skip to content

Commit

Permalink
test: when we measure our coverage, get a json report also
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 31, 2021
1 parent 79f832f commit bb78d7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
.coverage
.coverage.*
coverage.xml
coverage.json
.metacov
.metacov.*
*.swp
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ clean: clean_platform ## Remove artifacts of test execution, i
@rm -f *$$py.class */*$$py.class */*/*$$py.class */*/*/*$$py.class */*/*/*/*$$py.class */*/*/*/*/*$$py.class
@rm -f coverage/*,cover
@rm -f MANIFEST
@rm -f .coverage .coverage.* coverage.xml .metacov*
@rm -f .coverage .coverage.* coverage.xml coverage.json .metacov*
@rm -f .tox/*/lib/*/site-packages/zzz_metacov.pth
@rm -f */.coverage */*/.coverage */*/*/.coverage */*/*/*/.coverage */*/*/*/*/.coverage */*/*/*/*/*/.coverage
@rm -f tests/covmain.zip tests/zipmods.zip tests/zip1.zip
Expand Down
1 change: 1 addition & 0 deletions igor.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def do_combine_html():
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):
Expand Down

0 comments on commit bb78d7e

Please sign in to comment.