diff options
author | Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua> | 2024-09-13 21:57:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 21:57:06 +0200 |
commit | b722f7003d8ce163368f4a586b5670fa5ae57a66 (patch) | |
tree | 7a1241c406c6e8bbe3c892280b7d6510d02e0992 /.coveragerc | |
parent | 🧪🚑 Fix running awx image in CI on merge (#15510) (diff) | |
download | awx-b722f7003d8ce163368f4a586b5670fa5ae57a66.tar.xz awx-b722f7003d8ce163368f4a586b5670fa5ae57a66.zip |
🧪 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
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc index f9ef3447bf..d06848ae15 100644 --- a/.coveragerc +++ b/.coveragerc @@ -23,6 +23,8 @@ exclude_lines = if 0: if __name__ == .__main__.: + ^\s*@pytest\.mark\.xfail + ignore_errors = True [xml] |