Hi All,

We need to create plugin that allows us to re-run some  test case N times
(or until failure).

We found 2 possible solutions:

1) Using copy module we copy items on pytest_collection_modifyitems hook.
This works good (-x option allows to re-run until the first failure)
But this works very slow in case there are a lot of items in collection
because filtering isn't performed yet.

2) Also there is alredy developed plugin (
https://github.com/klrmn/pytest-rerunfailures/blob/master/rerunfailures/plugin.py).
But it doesn't work with test classes.

Does anybody have any ideas about fast and universal solution?

Thank you in advance!
Anton
_______________________________________________
Pytest-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to