1

I'm using jenkins, gradle, cucumber and java to run end-to-end tests.

I want to retry every failing test twice.

How can I configure any of the frameworks above to do so?

Opal
  • 81,889
  • 28
  • 189
  • 210
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
  • In general failing test indicates that something is wrong. Taking it into consideration, why You want these failing tests to be repeated? – Opal Jul 19 '14 at 14:31
  • A test that fails sometimes when things aren't "broken" isn't a useful test. Instead of running it multiple times hoping for a pass, spend your time trying to get the test to be less brittle. – Todd Jul 19 '14 at 14:44
  • sometimes my environment fails for a second and a retry will help. I usually use webdriver.wait But i'll love to know how to retry anyway – Elad Benda2 Jul 19 '14 at 15:00
  • possible duplicate of [How to rerun the failed scenarios using Cucumber?](http://stackoverflow.com/questions/11719898/how-to-rerun-the-failed-scenarios-using-cucumber) – Laurent Bristiel Jul 22 '14 at 07:53

0 Answers0