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 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
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 摘要。