codeceptjs / codeceptjs/CodeceptJS

How to Retry a complete Failed Scenario in CodeceptJS with Playwright and BDD (Gherkin)?

Aberta
#5,003 7 comentários 0 reações 0 responsáveis Ver no GitHub
stale
Linguagem predominante
JavaScript
Estrelas
4.2k
Forks
757
Merge médio
2d 9h
PRs com merge (30d)
16

Descrição

I'm using CodeceptJS with the Playwright helper and BDD-style Gherkin syntax for writing tests. I want to retry an entire scenario if it fails, rather than retrying individual steps.

For example, if a scenario fails due to a temporary glitch (e.g., network issue or slow response), I want the whole scenario to automatically re-run a specified number of times before being marked as failed.

I've found options like retryFailedStep in CodeceptJS config, but that seems to apply only to individual steps.

Is there a built-in way or a recommended approach to retry failed scenarios in CodeceptJS when using Gherkin?

I'd appreciate any examples or configuration snippets if available.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.