From 1dc3a28805e6a992b609ae99287e5ff6fbcb2120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Mon, 1 Jul 2024 16:21:35 +0200 Subject: [PATCH] Merge pull request #12531 from webknjaz/maintenance/xfail-no-cover (cherry picked from commit 1a8394ed8964a43e2fe766df3a48fa0573362512) --- .coveragerc | 2 ++ changelog/12531.contrib.rst | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelog/12531.contrib.rst diff --git a/.coveragerc b/.coveragerc index a335557d4..b81047141 100644 --- a/.coveragerc +++ b/.coveragerc @@ -29,3 +29,5 @@ exclude_lines = ^\s*if TYPE_CHECKING: ^\s*@overload( |$) + + ^\s*@pytest\.mark\.xfail diff --git a/changelog/12531.contrib.rst b/changelog/12531.contrib.rst new file mode 100644 index 000000000..fd83b211f --- /dev/null +++ b/changelog/12531.contrib.rst @@ -0,0 +1,6 @@ +The coverage reporting configuration has been updated to exclude +pytest's own tests marked as expected to fail from the coverage +report. This has an effect of reducing the influence of flaky +tests on the resulting number. + +-- by :user`webknjaz`