codeceptjs / codeceptjs/CodeceptJS
How to Retry a complete Failed Scenario in CodeceptJS with Playwright and BDD (Gherkin)?
- Langage dominant
- JavaScript
- Étoiles
- 4.2k
- Forks
- 757
- Merge moyen
- 2 j 9 h
- PR mergées (30 j)
- 16
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la configuration de CodeceptJS pour retryFailedStep et le chemin d’exécution BDD/Gherkin du helper Playwright. Vérifiez si la nouvelle tentative au niveau du scénario est documentée ou prise en charge ; le travail est considéré comme terminé lorsqu’une configuration étayée par des preuves ou un chemin d’implémentation clairement délimité pour réexécuter des scénarios entiers est établi.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, playwright
- Domaine
- testing
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100