0.0
No commit activity in last 3 years
No release in over 3 years
This gem will auto repeat a scenario if it fails up to 2 additional times
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.7.3
>= 1.3.17
 Project Readme

Cucumber Repeater

This will repeat a scenario which fails up to 2 additional times. It will repeat the whole scenario again.

How you use?

Either tag the scenario of feature with the @repeat tag

Scenario e.g:

@repeat
Scenario: Works first time
  Given I do something
  Then I expect it this to pass on the second go

Feature e.g:

@repeat
Feature: Testing Cucumber Repeat

Scenario: Works first time
  Given I do something
  Then I expect it this to pass on the second go

Outputting results

This will display results in the pretty format, additionally it is also able to display the results as Junit.

To output as Pretty do:

cucumber --format Cucumber::Formatter::Pretty

To output as Junit do:

cucumber --format Cucumber::Formatter::JunitRepeater --out results/

Note: this still displays some Pretty text

To output as Junit and Pretty:

cucumber --format Cucumber::Formatter::Pretty --format Cucumber::Formatter::JunitRepeater --out results/

Repeat Attempts

The default retries is 2, but you can override the amount:

cucumber REPEAT=5

This will repeat a test up to 5 times.