cucumberjs-qase-reporter 2.0.0 → 2.0.1

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Publish results simple and easy.
4
4
 
5
- ## How to install
5
+ To install the latest version, run:
6
6
 
7
7
  ```sh
8
8
  npm install -D cucumberjs-qase-reporter
package/dist/storage.d.ts CHANGED
@@ -97,5 +97,11 @@ export declare class Storage {
97
97
  */
98
98
  static stepStatusMap: Record<TestStepResultStatus, StepStatusEnum>;
99
99
  private parseTags;
100
+ /**
101
+ * @param {Pickle} pickle
102
+ * @param {number[]} ids
103
+ * @private
104
+ */
105
+ private getSignature;
100
106
  }
101
107
  export {};
package/dist/storage.js CHANGED
@@ -184,9 +184,10 @@ class Storage {
184
184
  message: null,
185
185
  muted: false,
186
186
  params: {},
187
+ group_params: {},
187
188
  relations: relations,
188
189
  run_id: null,
189
- signature: '',
190
+ signature: this.getSignature(pickle, metadata.ids),
190
191
  steps: this.convertSteps(pickle.steps, tc),
191
192
  testops_id: metadata.ids.length > 0 ? metadata.ids : null,
192
193
  id: tcs.id,
@@ -266,6 +267,20 @@ class Storage {
266
267
  }
267
268
  return metadata;
268
269
  }
270
+ /**
271
+ * @param {Pickle} pickle
272
+ * @param {number[]} ids
273
+ * @private
274
+ */
275
+ getSignature(pickle, ids) {
276
+ let signature = pickle.uri.split('/').join('::')
277
+ + '::'
278
+ + pickle.name.toLowerCase().replace(/\s/g, '_');
279
+ if (ids.length > 0) {
280
+ signature += '::' + ids.join('::');
281
+ }
282
+ return signature;
283
+ }
269
284
  }
270
285
  exports.Storage = Storage;
271
286
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cucumberjs-qase-reporter",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Qase TMS CucumberJS Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "license": "Apache-2.0",
41
41
  "dependencies": {
42
42
  "@cucumber/messages": "^22.0.0",
43
- "qase-javascript-commons": "^2.0.0-beta.8"
43
+ "qase-javascript-commons": "^2.2.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@cucumber/cucumber": ">=7.0.0"