codeceptjs / codeceptjs/CodeceptJS

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

Đang mở
#2,961 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
757
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Mô tả

#### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.