pytest-repeat icon indicating copy to clipboard operation
pytest-repeat copied to clipboard

Repeat only on failure

Open varac opened this issue 5 years ago • 2 comments

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 ?

varac avatar Dec 06 '19 08:12 varac

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

The-Compiler avatar Dec 06 '19 11:12 The-Compiler

@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.

varac avatar Dec 06 '19 15:12 varac