box / flaky

Plugin for nose or pytest that automatically reruns flaky tests.
Apache License 2.0
377 stars 60 forks source link

Is it Possible to do a Flaky Rerun on a Pytest Error rather than a Pytest Failure? #186

Closed zesoft23 closed 2 years ago

zesoft23 commented 2 years ago

Hey folks,

Just wondering if there is a way to use flaky on an error within pytest rather than a failure! I have a couple tests that fail occasionally on setup, but it seems like flaky doesn't pickup an error rather than a failure.

Let me know if you need any particular setup info or if I'm not making sense!

bkthomps commented 2 years ago

Since version 3.7.0 it supports flaky test retrying on Error on setup