Skip to content

Commit da04914

Browse files
authored
3.4.0 release (#3584)
* preparing release * updated deps * updated deps * fixed unit tests * fixed typings * fixed log * fixed bdd test * fixed run-rerun error * updated helpers to use package * fixed tests * fixed api tests * fixed tests, added tutorial
1 parent 02af78b commit da04914

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+586
-1003
lines changed

CHANGELOG.md

+47
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## 3.4.0
2+
3+
* **Updated to latest mocha and modern Cucumber**
4+
* **Allure plugin moved to [@codeceptjs/allure-legacy](https://github.com/codeceptjs/allure-legacy) package**. This happened because allure-commons package v1 was not updated and caused vulnarabilities. Fixes #3422. We don't plan to maintain allure v2 plugin so it's up to community to take this initiative. Current allure plugin will print a warning message without interfering the run, so it won't accidentally fail your builds.
5+
* Added ability to **[retry Before](https://codecept.io/basics/#retry-before), BeforeSuite, After, AfterSuite** hooks by @davertmik:
6+
```js
7+
Feature('flaky Before & BeforeSuite', { retryBefore: 2, retryBeforeSuite: 3 })
8+
```
9+
10+
* **Flexible [retries configuration](https://codecept.io/basics/#retry-configuration) introduced** by @davertmik:
11+
12+
```js
13+
retry: [
14+
{
15+
// enable this config only for flaky tests
16+
grep: '@flaky',
17+
Before: 3 // retry Before 3 times
18+
Scenario: 3 // retry Scenario 3 times
19+
},
20+
{
21+
// retry less when running slow tests
22+
grep: '@slow'
23+
Scenario: 1
24+
Before: 1
25+
}, {
26+
// retry all BeforeSuite 3 times
27+
BeforeSuite: 3
28+
}
29+
]
30+
```
31+
* **Flexible [timeout configuration](https://codecept.io/advanced/#timeout-configuration)** introduced by @davertmik:
32+
33+
```js
34+
timeout: [
35+
10, // default timeout is 10secs
36+
{ // but increase timeout for slow tests
37+
grep: '@slow',
38+
Feature: 50
39+
},
40+
]
41+
```
42+
43+
* JsDoc: Removed promise from `I.say`. See #3535 by @danielrentz
44+
* [Playwright] `handleDownloads` requires now a filename param. See #3511 by @PeterNgTr
45+
* [WebDriver] Added support for v8, removed support for webdriverio v5 and lower. See #3578 by @PeterNgTr
46+
47+
148
## 3.3.7
249

350
🛩️ Features

docs/advanced.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ A timeout for a group of tests can be set on Feature level via options.
236236
Feature('flaky tests', { timeout: 30 })
237237
```
238238
239-
### Timeout Confguration <Badge text="Updated in 3.4" type="warning"/>
239+
### Timeout Confguration
240+
241+
<Badge text="Updated in 3.4" type="warning"/>
240242
241243
Timeout rules can be set globally via config.
242244

0 commit comments

Comments
 (0)