pytest-dev / pytest-xdist

pytest plugin for distributed testing and loop-on-failures testing modes.
https://pytest-xdist.readthedocs.io
MIT License
1.48k stars 232 forks source link

Re-run failed test after slave death #183

Open digitalresistor opened 7 years ago

digitalresistor commented 7 years ago

Is there a way to re-run a test that failed during slave death? Due to the nature of the project I am working on it is possible for a test slave to be reaped by the OOM handler in Linux, and instead of rejecting that test it would be awesome if the test could instead be retried.

nicoddemus commented 7 years ago

Not ouf of the box, sorry. I wonder though if you could use another plugin together with xdist, for example pytest-rerunfailures.

digitalresistor commented 7 years ago

It seems this is an issue for me too: https://github.com/pytest-dev/pytest-xdist/issues/124

So for this to be useful, the right test has to be marked.

nicoddemus commented 7 years ago

So for this to be useful, the right test has to be marked.

True, I'll change the label to "enhancement".