Skip to content

Retrying a scenario only under certain conditions #281

Answered by ilslv
tgsmith61591 asked this question in Q&A
Discussion options

You must be logged in to vote

@tgsmith61591 we don't support more complex logic for the retries and I don't think that we will ever do that. Quoting the cucumber book

WARNING: Although this feature is supported, we highly recommend to use it as the last resort only. First, consider implementing in-step retries with your own needs (like exponential backoff). Other ways of dealing with flaky tests include, but not limited to: reducing number of concurrently executed scenarios (maybe even using @serial tag), mocking external environment, controlling time in tests or even simulation testing. It's always better to move towards tests determinism, rather than trying to tame their flakiness.

So I think the best way to deal …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ilslv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested k::api Related to API (application interface) k::design Related to overall design and/or architecture
2 participants
Converted from issue

This discussion was converted from issue #280 on April 28, 2023 05:27.