Requirements and Installation
Requirements
You will need the following prerequisites in order to use pytest-rerunfailures:
Python 3.10+ or PyPy3
pytest 8.1 or newer
This plugin can recover from a hard crash with the following optional prerequisites:
pytest-xdist 2.3.0 or newer
This package is currently tested against the last 5 minor pytest releases. In case you work with an older version of pytest you should consider updating or use one of the earlier versions of this package.
Installation
To install pytest-rerunfailures:
$ pip install pytest-rerunfailures
Compatibility
This plugin is not compatible with pytest-xdist’s –looponfail flag.
This plugin is not compatible with the core –pdb flag.
This plugin is not compatible with the plugin flaky, you can only have
pytest-rerunfailuresorflakybut not both.