Rerun failed test in java cucumber - Need help

848 views
Skip to first unread message

Baskar chinnakonda

unread,
Jul 13, 2016, 11:22:08 PM7/13/16
to Serenity BDD Users Group
I have tried the max.retries options in my java/cucumber project however it was executed only once.

Could you please help me out to rerun failure test. 


John Ferguson SmartSmart

unread,
Jul 14, 2016, 2:13:47 AM7/14/16
to Serenity BDD Users Group, Baskar chinnakonda
This feature was for JUnit, but has been replaced by the equivalent feature in surefire and failsafe. 

In general, I have found that rerunning failing tests is an anti-pattern, as it encourages unstable (and therefore unreliable) tests and can hide genuine issues.

___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better

http://johnfergusonsmart.com  | rea...@johnfergusonsmart.com
___________________________________________________


On 14 July 2016 at 4:22:10 AM, Baskar chinnakonda (baskarch...@gmail.com) wrote:

I have tried the max.retries options in my java/cucumber project however it was executed only once.

Could you please help me out to rerun failure test. 


--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Baskar chinnakonda

unread,
Jul 14, 2016, 5:17:19 AM7/14/16
to Serenity BDD Users Group, baskarch...@gmail.com
Thanks John even i realize the same

CSB

Matthew Chan

unread,
Jul 28, 2016, 10:05:37 PM7/28/16
to Serenity BDD Users Group
Yeh no easy and clean way to do it with Cucumber-jvm and Serenity-BDD.

If you use the Cucumber retry, it still causes your build to fail.

Furthermore, it doesn't work well if it's a scenario outline, as it only writes the scenario outline Example line number to the txt file, and when serenity aggregates the results and generates the report - for the scenario outline it will ONLY contain the re-run scenario outline example, and the rest of the examples will be missing. 
Reply all
Reply to author
Forward
0 new messages