pytest-dev / pytest-repeat

pytest plugin for repeating test execution
https://pypi.python.org/pypi/pytest-repeat/
Other
172 stars 28 forks source link

Repeat only on failure #42

Closed varac closed 1 year ago

varac commented 4 years ago

I'd like to repeat a test until it succeeds (waiting for some condition before continuing with other tests). An option would be great like --repeat-on=failure, with a default of success, which seems to be the default behviour. Does this make sense ?

The-Compiler commented 4 years ago

Maybe the pytest-rerunfailures plugin would be a better match?

varac commented 4 years ago

@The-Compiler Thxm I already found and use pytest-rerunfailures after creating this issue. works great, still I think it could be a good addition for pytest-repeat. But feel free to close this issue.