Closed francis-clairicia closed 6 months ago
@francis-clairicia Thanks for reporting this. Compatibility with pytest-xdist hasn't been a priority of this plugin until now, but it wasn't too difficult to add a server for the main xdist process to collect and build a complete retry report. See https://github.com/str0zzapreti/pytest-retry/pull/29 .
Based on my own experience, I would still recommend parallelizing tests using your CI tool of choice rather than pytest-xdist as it often scales better and usually avoids these sorts of incompatibilities, but I understand that's not always possible! Anyway, once I finish testing this new feature it'll go out with version 1.6.0.
In my case, I can't override xdist, but I agree that it's best to avoid using it if you don't have to.
Yup, been there. Let me know if you notice any issues with the new version!
Hi, I was testing the compatibility of the plugin with
pytest-xdist
to use it in my project and saw that the feature is missing, so I am reporting it here.Minimal reproducible example
In
test_flaky.py
Without
pytest-xdist
:With
pytest-xdist
: