JoshKeegan / xRetry

Retry running tests via Xunit and Specflow
MIT License
46 stars 15 forks source link

Retry just test steps #112

Closed jrpc12 closed 2 years ago

jrpc12 commented 2 years ago

Is there is a way to retry the test steps instead to retry the whole scenario?

decorating the gherkin scenario with @retry when a step (given/when/then) fails, the retry start over from the beginning of the scenario and the behavior I want to provide is a way to retry the step that has failed only to do not run the steps that has already passed

JoshKeegan commented 2 years ago

Hi, this isn’t possible with this library. The custom logic that is applied is against the whole scenario, or test case for xunit. So it isn’t possible to retry just the failing step.

On 24 Dec 2021, at 15:35, Jimmy @.***> wrote:

 Is there is a way to retry the test steps instead to retry the whole scenario?

decorating the gherkin scenario with @Retry when a step (given/when/then) fails, the retry start over from the beginning of the scenario and the behavior I want to provide is a way to retry the step that has failed only to do not run the steps that has already passed

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

jrpc12 commented 2 years ago

good to know @JoshKeegan I'll take a different approach to solve this requirement in my project