mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -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
|
@ -154,6 +154,12 @@ def command_coverage_report(args):
|
|||
if args.show_missing:
|
||||
options.append('--show-missing')
|
||||
|
||||
if args.include:
|
||||
options.extend(['--include', args.include])
|
||||
|
||||
if args.omit:
|
||||
options.extend(['--omit', args.omit])
|
||||
|
||||
env = common_environment()
|
||||
env.update(dict(COVERAGE_FILE=output_file))
|
||||
run_command(args, env=env, cmd=['coverage', 'report'] + options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue