@wdio/allure-reporter 7.19.5 → 7.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -5
- package/build/utils.d.ts +1 -1
- package/build/utils.d.ts.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,17 +7,17 @@ WDIO Allure Reporter
|
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
10
|
-
The easiest way is to
|
|
10
|
+
The easiest way is to include `@wdio/allure-reporter` as a devDependency in your `package.json`.
|
|
11
11
|
|
|
12
12
|
```json
|
|
13
13
|
{
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@wdio/allure-reporter": "^
|
|
15
|
+
"@wdio/allure-reporter": "^7.0.0"
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
You can
|
|
20
|
+
You can simply do it by:
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
23
|
npm install @wdio/allure-reporter --save-dev
|
|
@@ -98,6 +98,15 @@ describe('Suite', () => {
|
|
|
98
98
|
})
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
Cucumber example:
|
|
102
|
+
|
|
103
|
+
```js
|
|
104
|
+
Given('I include feature and story name', () => {
|
|
105
|
+
allureReporter.addFeature('Feature_name');
|
|
106
|
+
allureReporter.addStory('Story_name');
|
|
107
|
+
})
|
|
108
|
+
```
|
|
109
|
+
|
|
101
110
|
## Displaying the report
|
|
102
111
|
|
|
103
112
|
The results can be consumed by any of the [reporting tools](https://docs.qameta.io/allure#_reporting) offered by Allure. For example:
|
|
@@ -162,9 +171,9 @@ Screenshots can be attached to the report by using the `takeScreenshot` function
|
|
|
162
171
|
First set `disableWebdriverScreenshotsReporting: false` in reporter options, then add in afterStep hook:
|
|
163
172
|
|
|
164
173
|
```js title="wdio.conf.js"
|
|
165
|
-
afterStep: function (
|
|
174
|
+
afterStep: async function (step, scenario, { error, duration, passed }, context) {
|
|
166
175
|
if (error) {
|
|
167
|
-
browser.takeScreenshot();
|
|
176
|
+
await browser.takeScreenshot();
|
|
168
177
|
}
|
|
169
178
|
}
|
|
170
179
|
```
|
package/build/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import AllureReporter from './index.js';
|
|
|
9
9
|
* @param config {Object} - wdio config object
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
12
|
-
export declare const getTestStatus: (test: TestStats | HookStats, config?: Options.Testrunner
|
|
12
|
+
export declare const getTestStatus: (test: TestStats | HookStats, config?: Options.Testrunner) => Status;
|
|
13
13
|
/**
|
|
14
14
|
* Check is object is empty
|
|
15
15
|
* @param object {Object}
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,cAAc,MAAM,YAAY,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAU,SAAS,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,cAAc,MAAM,YAAY,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAAU,SAAS,GAAG,SAAS,WAAW,QAAQ,UAAU,KAAI,MAiBzF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,WAAY,GAAG,YAAgD,CAAA;AAEnF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,UAAW,MAAM,YAAsD,CAAA;AAEpG;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAAW,MAAM,YAAqD,CAAA;AAElG;;;;;GAKG;AACH,eAAO,MAAM,YAAY,UAAW,MAAM,QAAO,GAAG,SAGnD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,SAAU,SAAS,GAAG,SAAS,KAAI,KAAK,GAAG,aAAa,GAAG,SAe7F,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,GAAG,SAAS,MAAM,MAAM,WAQzE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,SAAS,UAAU,cAAc,CAAC,SAAS,CAAC,SAS5F,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/allure-reporter",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.3",
|
|
4
4
|
"description": "A WebdriverIO reporter plugin to create Allure Test Reports",
|
|
5
5
|
"author": "Boris Osipov <osipov.boris@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"@wdio/reporter": "7.
|
|
29
|
-
"@wdio/types": "7.
|
|
27
|
+
"@types/node": "^18.0.0",
|
|
28
|
+
"@wdio/reporter": "7.20.3",
|
|
29
|
+
"@wdio/types": "7.20.3",
|
|
30
30
|
"allure-js-commons": "^1.3.2",
|
|
31
31
|
"csv-stringify": "^6.0.4",
|
|
32
32
|
"strip-ansi": "^6.0.0"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "df5cbf4f557ddc04f49ebc25b9a74231fdd44f2b"
|
|
41
41
|
}
|