codeceptjs / codeceptjs/CodeceptJS

Mocha retries option doesn't work with BDD scenarios and rewrites it in case of using retries from BDD steps

オープン
#2,961 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

#### What are you trying to achieve?
The goal is to use retry option from Mocha object in codeceptjs config file for both traditional and BDD steps
I've set up retries option inside Mocha object in codeceptjs config file

```
mocha: {
retries: 5
},

```
And it works for traditional scenarios, number of retries are the same as I expect

#### What do you get instead?
But as soon as I'm using it for BDD scenarios retry doesn't apply for those scenarios and test is executing only once.

From other side, if I use retry in BDD steps

```
Before(test => {
test.retries(3);
});
```

traditional scenarios use these retries but not from codeceptjs config file

```

### Details

* CodeceptJS version: 3.0.7
* NodeJS Version: 14.15.1
* Operating System: Mac OS
* playwright 1.12.0
* cucumber: ^6.0.5

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。