Editorial question13.7K views3,052 votes0 answers906 following
AI-generatedpytest‑rerunfailures and transactional fixtures: deciding retry scope for test body vs fixtures
When using pytest‑rerunfailures to re‑run flaky tests, the plugin currently executes the whole test function, including all fixture setup and teardown, on each retry attempt. The goal is to decide whether a retry should preserve fixture state (i.e., re‑run only the test body) or always re‑create fixtures, especially when fixtures perform external writes such