mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-04 08:11:30 -07:00
Add support for ansible-test --coverage-check. (#53573)
This commit is contained in:
parent
9ff25c0167
commit
887ab35656
8 changed files with 49 additions and 13 deletions
|
@ -29,6 +29,11 @@ def pytest_configure():
|
|||
if not coverage_config:
|
||||
return
|
||||
|
||||
coverage_output = os.environ.get('_ANSIBLE_COVERAGE_OUTPUT')
|
||||
|
||||
if not coverage_output:
|
||||
return
|
||||
|
||||
cov = coverage.Coverage(config_file=coverage_config)
|
||||
coverage_instances.append(cov)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue