mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-13 00:20:50 -07:00
Add --include and --omit options to ansible-test coverage report (#38061)
* Support --include and --omit with ansible-test coverage report * Code format change
This commit is contained in:
parent
9b1e97424e
commit
a19a21d715
3 changed files with 17 additions and 0 deletions
|
@ -397,6 +397,15 @@ def parse_args():
|
|||
coverage_report.add_argument('--show-missing',
|
||||
action='store_true',
|
||||
help='show line numbers of statements not executed')
|
||||
coverage_report.add_argument('--include',
|
||||
metavar='PAT1,PAT2,...',
|
||||
help='include only files whose paths match one of these '
|
||||
'patterns. Accepts shell-style wildcards, which must be '
|
||||
'quoted.')
|
||||
coverage_report.add_argument('--omit',
|
||||
metavar='PAT1,PAT2,...',
|
||||
help='omit files whose paths match one of these patterns. '
|
||||
'Accepts shell-style wildcards, which must be quoted.')
|
||||
|
||||
add_extra_coverage_options(coverage_report)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue