cypress-qase-reporter 2.2.10 → 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/changelog.md +7 -0
- package/dist/fileSearcher.js +1 -0
- package/dist/reporter.js +8 -11
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# cypress-qase-reporter@2.3.0
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
- Updated to the latest minor version of the common package for improved compatibility and features.
|
|
6
|
+
- Fixed all ESLint warnings across the project to ensure code quality and maintainability.
|
|
7
|
+
|
|
1
8
|
# cypress-qase-reporter@2.2.10
|
|
2
9
|
|
|
3
10
|
## What's new
|
package/dist/fileSearcher.js
CHANGED
|
@@ -26,6 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.FileSearcher = void 0;
|
|
27
27
|
const fs = __importStar(require("fs"));
|
|
28
28
|
const path = __importStar(require("path"));
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
29
30
|
class FileSearcher {
|
|
30
31
|
/**
|
|
31
32
|
* Finds all files in the given directory and its subdirectories
|
package/dist/reporter.js
CHANGED
|
@@ -166,7 +166,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
const result = {
|
|
169
|
-
attachments: attachments
|
|
169
|
+
attachments: attachments,
|
|
170
170
|
author: null,
|
|
171
171
|
fields: metadata?.fields ?? {},
|
|
172
172
|
message: message,
|
|
@@ -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
|
+
"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.
|
|
54
|
+
"qase-javascript-commons": "~2.3.3",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|