codeceptjs / codeceptjs/CodeceptJS

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

Aperta
#5,003 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
stale
Lingua principale
JavaScript
Stelle
4.2k
Fork
757
Merge medio
2g 9h
PR unite (30g)
16

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.