Retries with Cypress Cucumber

Viewed 496

Could you advice how to retry Scenario in Cypress Cucumber if it fails? If I use for ex. retries:2 in cypress.json, and two test scenarios, when the first scenario fails it retries only the second scenario.

1 Answers

cypress-cucumber-preprocessor doesn't have that feature till now. However, you can try Cytorus in this case. This is the example to make a scenario retriable.

#> retries: 2
Scenario: This is a scenario
    Given I access a site on slow network
    Then it opens

Ref: cytorus docs

Related