A pytest plugin to automatically ignore failures from flaky tests. Current version 2.2.1, requires Python >=3.8. Release cadence is irregular; last update was in 2023.
pip install pytest-ignore-flakyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Mark a flaky test with @pytest.mark.flaky and specify max_runs (default 3) and min_passes (default 1). The plugin retries the test up to max_runs times, ignoring failures if min_passes is met.
Add the flaky mark to each test you want retried, or use --force-flaky to make all tests flaky.
In newer versions, use --flaky-ignore instead of --ignore-flaky. Check the output logs carefully.
Use --flaky-ignore instead of --ignore-flaky.
Use --flaky-ignore instead of --ignore-flaky.
Run 'pip install pytest-ignore-flaky' and ensure the virtual environment is activated.
Use the decorator as @pytest.mark.flaky(max_runs=3, min_passes=1). Ensure pytest is imported.