mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Add support for ansible-test --coverage-check. (#53573)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user