@wdio/allure-reporter 8.15.0 → 8.15.7
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 +1 -10
- package/build/common/api.d.ts +3 -0
- package/build/common/api.d.ts.map +1 -1
- package/build/common/api.js +3 -0
- package/cjs/common/api.js +3 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ export const config = {
|
|
|
52
52
|
- `useCucumberStepReporter` - optional parameter (`false` by default), set it to true in order to change the report hierarchy when using cucumber. Try it for yourself and see how it looks.
|
|
53
53
|
- `disableMochaHooks` - optional parameter (`false` by default), set it to true in order to not fetch the `before/after` stacktrace/screenshot/result hooks into the Allure Reporter.
|
|
54
54
|
- `addConsoleLogs` - optional parameter(`false` by default), set to true in order to attach console logs from step to the reporter.
|
|
55
|
-
- `reportedEnvironmentVars` - Set this option to display the environment variables in the report. Note that setting this, does not modify the actual environment variables.
|
|
55
|
+
- `reportedEnvironmentVars` (**type:** `Record<string, string>`) - Set this option to display the environment variables in the report. Note that setting this, does not modify the actual environment variables.
|
|
56
56
|
|
|
57
57
|
## Supported Allure API
|
|
58
58
|
* `addLabel(name, value)` - assign a custom label to test
|
|
@@ -77,15 +77,6 @@ export const config = {
|
|
|
77
77
|
* `addDescription(description, [type])` – add description to test.
|
|
78
78
|
* `description` (*String*) - description of the test.
|
|
79
79
|
* `type` (*String*, optional) – description type, `text` by default. Values ['text', 'html','markdown']
|
|
80
|
-
* `addStep(title, [{content, name = 'attachment'}], [status])` - add step to test.
|
|
81
|
-
* `title` (*String*) - name of the step.
|
|
82
|
-
* `content` (*String*, optional) - step attachment
|
|
83
|
-
* `name` (*String*, optional) - step attachment name, `attachment` by default.
|
|
84
|
-
* `status` (*String*, optional) - step status, `passed` by default. Must be "failed", "passed" or "broken"
|
|
85
|
-
* `startStep(title)` - start with a step
|
|
86
|
-
* `title` (*String*) - name of the step.
|
|
87
|
-
* `endStep(status)` - end with a step
|
|
88
|
-
* `status` (*String*, optional) - step status, `passed` by default. Must be "failed", "passed" or "broken"
|
|
89
80
|
* `step(name, body)` - starts step with content function inside. Allows to create steps with infinite hierarchy
|
|
90
81
|
* `body` (*Function*) - the step body async function
|
|
91
82
|
|
package/build/common/api.d.ts
CHANGED
|
@@ -111,18 +111,21 @@ export declare function addDescription(description: string, descriptionType: str
|
|
|
111
111
|
export declare function addAttachment(name: string, content: string | Buffer | object, type: string): void;
|
|
112
112
|
/**
|
|
113
113
|
* Start allure step
|
|
114
|
+
* @deprecated use `step` method instead
|
|
114
115
|
* @name startStep
|
|
115
116
|
* @param {string} title - step name in report
|
|
116
117
|
*/
|
|
117
118
|
export declare function startStep(title: string): void;
|
|
118
119
|
/**
|
|
119
120
|
* End current allure step
|
|
121
|
+
* @deprecated use `step` method instead
|
|
120
122
|
* @name endStep
|
|
121
123
|
* @param {StepStatus} [status='passed'] - step status
|
|
122
124
|
*/
|
|
123
125
|
export declare function endStep(status?: Status): void;
|
|
124
126
|
/**
|
|
125
127
|
* Create allure step
|
|
128
|
+
* @deprecated use `step` method instead
|
|
126
129
|
* @name addStep
|
|
127
130
|
* @param {string} title - step name in report
|
|
128
131
|
* @param {object} [attachmentObject={}] - attachment for step
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/common/api.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACzD,OAAO,EAAE,MAAM,EAA+B,MAAM,mBAAmB,CAAA;AAavE;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,QAEhE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAA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BAAgB,aAAa,CAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,QAK3F;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAE,KAAK,EAAE,MAAM,QAEvC;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAE,MAAM,GAAE,MAAsB,QAKtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CACnB,KAAK,EAAE,MAAM,EACb,EACI,OAAO,EACP,IAAmB,EACnB,IAAmB,EACtB,GAAE,GAAQ,EACX,MAAM,GAAE,MAAsB,QAQjC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAEvD;AAED;;;;;GAKG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,iBAK9D;;;;;;;;;;;;;;;;;;;AAED,wBAGC"}
|
package/build/common/api.js
CHANGED
|
@@ -157,6 +157,7 @@ export function addAttachment(name, content, type) {
|
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
159
|
* Start allure step
|
|
160
|
+
* @deprecated use `step` method instead
|
|
160
161
|
* @name startStep
|
|
161
162
|
* @param {string} title - step name in report
|
|
162
163
|
*/
|
|
@@ -165,6 +166,7 @@ export function startStep(title) {
|
|
|
165
166
|
}
|
|
166
167
|
/**
|
|
167
168
|
* End current allure step
|
|
169
|
+
* @deprecated use `step` method instead
|
|
168
170
|
* @name endStep
|
|
169
171
|
* @param {StepStatus} [status='passed'] - step status
|
|
170
172
|
*/
|
|
@@ -176,6 +178,7 @@ export function endStep(status = Status.PASSED) {
|
|
|
176
178
|
}
|
|
177
179
|
/**
|
|
178
180
|
* Create allure step
|
|
181
|
+
* @deprecated use `step` method instead
|
|
179
182
|
* @name addStep
|
|
180
183
|
* @param {string} title - step name in report
|
|
181
184
|
* @param {object} [attachmentObject={}] - attachment for step
|
package/cjs/common/api.js
CHANGED
|
@@ -177,6 +177,7 @@ function addAttachment(name, content, type) {
|
|
|
177
177
|
exports.addAttachment = addAttachment;
|
|
178
178
|
/**
|
|
179
179
|
* Start allure step
|
|
180
|
+
* @deprecated use `step` method instead
|
|
180
181
|
* @name startStep
|
|
181
182
|
* @param {string} title - step name in report
|
|
182
183
|
*/
|
|
@@ -186,6 +187,7 @@ function startStep(title) {
|
|
|
186
187
|
exports.startStep = startStep;
|
|
187
188
|
/**
|
|
188
189
|
* End current allure step
|
|
190
|
+
* @deprecated use `step` method instead
|
|
189
191
|
* @name endStep
|
|
190
192
|
* @param {StepStatus} [status='passed'] - step status
|
|
191
193
|
*/
|
|
@@ -198,6 +200,7 @@ function endStep(status = allure_js_commons_1.Status.PASSED) {
|
|
|
198
200
|
exports.endStep = endStep;
|
|
199
201
|
/**
|
|
200
202
|
* Create allure step
|
|
203
|
+
* @deprecated use `step` method instead
|
|
201
204
|
* @name addStep
|
|
202
205
|
* @param {string} title - step name in report
|
|
203
206
|
* @param {object} [attachmentObject={}] - attachment for step
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/allure-reporter",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.7",
|
|
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",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@types/node": "^20.1.0",
|
|
43
|
-
"@wdio/reporter": "8.15.
|
|
44
|
-
"@wdio/types": "8.15.
|
|
45
|
-
"allure-js-commons": "^2.
|
|
43
|
+
"@wdio/reporter": "8.15.7",
|
|
44
|
+
"@wdio/types": "8.15.7",
|
|
45
|
+
"allure-js-commons": "^2.5.0",
|
|
46
46
|
"csv-stringify": "^6.0.4",
|
|
47
47
|
"strip-ansi": "^7.1.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "24d8f0dccf54e6e19779094d73eb90ae9086ee86"
|
|
53
53
|
}
|