pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
11.64k stars 2.58k forks source link

[PR #12531/1a8394ed backport][8.2.x] 🧪 Unmeasure coverage in tests expected to fail #12551

Closed patchback[bot] closed 4 days ago

patchback[bot] commented 4 days ago

This is a backport of PR #12531 as merged into main (1a8394ed8964a43e2fe766df3a48fa0573362512).

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.