webdriverio-boneyard / wdio-cucumber-framework

A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
MIT License
77 stars 61 forks source link

Allow retrying at Scenario level #106

Closed adenflorian closed 5 years ago

adenflorian commented 6 years ago

I see that retries for individual steps are supported, and I think retrying of Scenarios would also be beneficial (particularly for a project that I'm working on).

Proposal

New number config option called numberOfTimesToRetryFailedScenario. When set to 0, it does what it currently does (fail the first time it fails). When set to 1, and a Scenario fails on the first try, that Scenario will be rerun from the start, and if it fails on the second run, then let the Scenario fail. Follow that pattern for 2 or more retries.

christian-bromann commented 6 years ago

I guess this can be a useful feature, feel free to propose a PR

deepikadixitb commented 6 years ago

I am really looking forward to this feature. please update once it is there.

christian-bromann commented 6 years ago

@deepikadixitb please provide a PR

syedasadulhaq commented 5 years ago

any update on this?

abjerstedt commented 5 years ago

@syedasadulhaq We have launched cucumber on webdriverio v5 months ago. We will not be doing feature enhancements on this repository.

syedasadulhaq commented 5 years ago

Thanks for the prompt response @abjerstedt. I'm using "webdriverio": "^5.11.13", I believe the "retry flaky tests in scenario level" is not available in wdio 5 (https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-cucumber-framework) either. Please correct me if I'm wrong. Thanks!

abjerstedt commented 5 years ago

@syedasadulhaq Then you should look for updates in the webdriverio repository :). If there isn't already an issue for this there, feel free to add a new feature enhancement request.

syedasadulhaq commented 5 years ago

ok, thanks