cypress-qase-reporter 2.3.0 → 2.3.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/dist/reporter.js +7 -10
- package/package.json +2 -2
package/dist/reporter.js
CHANGED
|
@@ -175,7 +175,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
175
175
|
group_params: metadata?.groupParams ?? {},
|
|
176
176
|
relations: relations,
|
|
177
177
|
run_id: null,
|
|
178
|
-
signature: this.getSignature(test, ids),
|
|
178
|
+
signature: this.getSignature(test, ids, metadata?.parameters ?? {}),
|
|
179
179
|
steps: steps,
|
|
180
180
|
id: (0, uuid_1.v4)(),
|
|
181
181
|
execution: {
|
|
@@ -199,22 +199,19 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
199
199
|
* @param {number[]} ids
|
|
200
200
|
* @private
|
|
201
201
|
*/
|
|
202
|
-
getSignature(test, ids) {
|
|
203
|
-
|
|
202
|
+
getSignature(test, ids, params) {
|
|
203
|
+
const suites = [];
|
|
204
204
|
const file = test.parent ? this.getFile(test.parent) : undefined;
|
|
205
205
|
if (file) {
|
|
206
|
-
|
|
206
|
+
suites.push(file.split(path_1.default.sep).join('::'));
|
|
207
207
|
}
|
|
208
208
|
if (test.parent) {
|
|
209
209
|
for (const suite of test.parent.titlePath()) {
|
|
210
|
-
|
|
210
|
+
suites.push(suite.toLowerCase().replace(/\s/g, '_'));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
signature += '::' + ids.join('::');
|
|
216
|
-
}
|
|
217
|
-
return signature;
|
|
213
|
+
suites.push(test.title.toLowerCase().replace(/\s/g, '_'));
|
|
214
|
+
return (0, qase_javascript_commons_1.generateSignature)(ids, suites, params);
|
|
218
215
|
}
|
|
219
216
|
getTestFileName(test) {
|
|
220
217
|
if (!test.parent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-qase-reporter",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Qase Cypress Reporter",
|
|
5
5
|
"homepage": "https://github.com/qase-tms/qase-javascript",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"author": "Qase Team <support@qase.io>",
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"qase-javascript-commons": "~2.3.
|
|
54
|
+
"qase-javascript-commons": "~2.3.3",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|