codeceptjs / codeceptjs/CodeceptJS
How to Retry a complete Failed Scenario in CodeceptJS with Playwright and BDD (Gherkin)?
- 主要言語
- JavaScript
- スター
- 4.2k
- フォーク
- 757
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 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.
コントリビューションガイド
調査の方向性
retryFailedStep の CodeceptJS 設定と、Playwright helper の BDD/Gherkin 実行パスから始めます。シナリオ単位の再試行が文書化されているか、またはサポートされているかを確認します。完了の条件は、証拠に基づく設定、またはシナリオ全体を再実行するための範囲が明確な実装パスです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, playwright
- 領域
- testing
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100