mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
🧪 Unmeasure coverage in tests expected to fail (#15512)
These tests are known to only be executed partially or not at all. So we always get incomplete, missing, and sometimes flaky, coverage in the test functions that are expected to fail. This change updates the ``coverage.py`` config to prevent said tests from influencing the coverage level measurement. Ref https://github.com/pytest-dev/pytest/pull/12531
This commit is contained in:
parent
6bfe76d6d1
commit
b722f7003d
@ -23,6 +23,8 @@ exclude_lines =
|
||||
if 0:
|
||||
if __name__ == .__main__.:
|
||||
|
||||
^\s*@pytest\.mark\.xfail
|
||||
|
||||
ignore_errors = True
|
||||
|
||||
[xml]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user