codeceptjs / codeceptjs/CodeceptJS
How to Retry a complete Failed Scenario in CodeceptJS with Playwright and BDD (Gherkin)?
- Lenguaje dominante
- JavaScript
- Estrellas
- 4.2k
- Forks
- 757
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 16
Descripción
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.
Guía de contribución
Línea de trabajo
Empieza por la configuración de CodeceptJS para retryFailedStep y la ruta de ejecución BDD/Gherkin del helper de Playwright. Comprueba si el reintento a nivel de escenario está documentado o es compatible; se considera completado cuando exista una configuración respaldada por evidencias o una ruta de implementación claramente delimitada para volver a ejecutar escenarios completos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, playwright
- Área
- testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100