@wdio/allure-reporter 8.17.0 → 8.19.0

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 CHANGED
@@ -77,6 +77,15 @@ 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"
80
89
  * `step(name, body)` - starts step with content function inside. Allows to create steps with infinite hierarchy
81
90
  * `body` (*Function*) - the step body async function
82
91
 
@@ -111,21 +111,18 @@ 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
115
114
  * @name startStep
116
115
  * @param {string} title - step name in report
117
116
  */
118
117
  export declare function startStep(title: string): void;
119
118
  /**
120
119
  * End current allure step
121
- * @deprecated use `step` method instead
122
120
  * @name endStep
123
121
  * @param {StepStatus} [status='passed'] - step status
124
122
  */
125
123
  export declare function endStep(status?: Status): void;
126
124
  /**
127
125
  * Create allure step
128
- * @deprecated use `step` method instead
129
126
  * @name addStep
130
127
  * @param {string} title - step name in report
131
128
  * @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,CAA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wBAAgB,WAAW,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAEvD;AAED;;;;;GAKG;AACH,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,iBAG9D;;;;;;;;;;;;;;;;;;;AAED,wBAGC"}
@@ -157,7 +157,6 @@ export function addAttachment(name, content, type) {
157
157
  }
158
158
  /**
159
159
  * Start allure step
160
- * @deprecated use `step` method instead
161
160
  * @name startStep
162
161
  * @param {string} title - step name in report
163
162
  */
@@ -166,7 +165,6 @@ export function startStep(title) {
166
165
  }
167
166
  /**
168
167
  * End current allure step
169
- * @deprecated use `step` method instead
170
168
  * @name endStep
171
169
  * @param {StepStatus} [status='passed'] - step status
172
170
  */
@@ -178,7 +176,6 @@ export function endStep(status = Status.PASSED) {
178
176
  }
179
177
  /**
180
178
  * Create allure step
181
- * @deprecated use `step` method instead
182
179
  * @name addStep
183
180
  * @param {string} title - step name in report
184
181
  * @param {object} [attachmentObject={}] - attachment for step
package/cjs/common/api.js CHANGED
@@ -177,7 +177,6 @@ function addAttachment(name, content, type) {
177
177
  exports.addAttachment = addAttachment;
178
178
  /**
179
179
  * Start allure step
180
- * @deprecated use `step` method instead
181
180
  * @name startStep
182
181
  * @param {string} title - step name in report
183
182
  */
@@ -187,7 +186,6 @@ function startStep(title) {
187
186
  exports.startStep = startStep;
188
187
  /**
189
188
  * End current allure step
190
- * @deprecated use `step` method instead
191
189
  * @name endStep
192
190
  * @param {StepStatus} [status='passed'] - step status
193
191
  */
@@ -200,7 +198,6 @@ function endStep(status = allure_js_commons_1.Status.PASSED) {
200
198
  exports.endStep = endStep;
201
199
  /**
202
200
  * Create allure step
203
- * @deprecated use `step` method instead
204
201
  * @name addStep
205
202
  * @param {string} title - step name in report
206
203
  * @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.17.0",
3
+ "version": "8.19.0",
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,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@types/node": "^20.1.0",
43
- "@wdio/reporter": "8.17.0",
44
- "@wdio/types": "8.17.0",
43
+ "@wdio/reporter": "8.19.0",
44
+ "@wdio/types": "8.19.0",
45
45
  "allure-js-commons": "^2.5.0",
46
46
  "csv-stringify": "^6.0.4",
47
47
  "strip-ansi": "^7.1.0"
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "f7fe9474c580fc2003f6abca130e44ed025b1bd5"
52
+ "gitHead": "5179b3b3d0bced033e719890baf4517137ac1576"
53
53
  }