codeceptjs / codeceptjs/CodeceptJS

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

未关闭
#5,003 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
stale
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
16

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。