newman-reporter-qase 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/dist/reporter.d.ts +7 -0
- package/dist/reporter.js +19 -1
- package/package.json +2 -2
package/dist/reporter.d.ts
CHANGED
package/dist/reporter.js
CHANGED
|
@@ -114,9 +114,10 @@ class NewmanQaseReporter {
|
|
|
114
114
|
message: null,
|
|
115
115
|
muted: false,
|
|
116
116
|
params: {},
|
|
117
|
+
group_params: {},
|
|
117
118
|
relations: relation,
|
|
118
119
|
run_id: null,
|
|
119
|
-
signature:
|
|
120
|
+
signature: this.getSignature(suites, item.name, ids),
|
|
120
121
|
steps: [],
|
|
121
122
|
testops_id: ids.length > 0 ? ids : null,
|
|
122
123
|
id: item.id,
|
|
@@ -167,6 +168,23 @@ class NewmanQaseReporter {
|
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* @param {string[]} suites
|
|
173
|
+
* @param {string} title
|
|
174
|
+
* @param {number[]} ids
|
|
175
|
+
* @private
|
|
176
|
+
*/
|
|
177
|
+
getSignature(suites, title, ids) {
|
|
178
|
+
let signature = '';
|
|
179
|
+
for (const suite of suites) {
|
|
180
|
+
signature += suite.toLowerCase().replace(/\s/g, '_') + '::';
|
|
181
|
+
}
|
|
182
|
+
signature += title.toLowerCase().replace(/\s/g, '_');
|
|
183
|
+
if (ids.length > 0) {
|
|
184
|
+
signature += '::' + ids.join('::');
|
|
185
|
+
}
|
|
186
|
+
return signature;
|
|
187
|
+
}
|
|
170
188
|
}
|
|
171
189
|
exports.NewmanQaseReporter = NewmanQaseReporter;
|
|
172
190
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newman-reporter-qase",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Qase TMS Newman Reporter",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"author": "Qase Team <support@qase.io>",
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"qase-javascript-commons": "
|
|
42
|
+
"qase-javascript-commons": "~2.2.0",
|
|
43
43
|
"semver": "^7.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|