Skip to content

Commit c0bde43

Browse files
authored
Merge pull request #63 from jedie/coverage
coverage xml report + CLI
2 parents acdc818 + a9878a4 commit c0bde43

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
__pycache__
44
/dist/
55
coverage.json
6+
coverage.xml
67

78
!.github
89
!.editorconfig

manageprojects/cli/cli_app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ def mypy(verbose: bool = True):
7575

7676

7777
@click.command()
78+
@click.option('--verbose/--no-verbose', **OPTION_ARGS_DEFAULT_FALSE)
7879
def coverage(verbose: bool = True):
7980
"""
8081
Run and show coverage.
8182
"""
8283
verbose_check_call('coverage', 'run', verbose=verbose, exit_on_error=True)
8384
verbose_check_call('coverage', 'combine', '--append', verbose=verbose, exit_on_error=True)
8485
verbose_check_call('coverage', 'report', '--fail-under=50', verbose=verbose, exit_on_error=True)
86+
verbose_check_call('coverage', 'xml', verbose=verbose, exit_on_error=True)
8587
verbose_check_call('coverage', 'json', verbose=verbose, exit_on_error=True)
8688

8789

0 commit comments

Comments
 (0)