newman-reporter-qase 2.0.0-beta.2 → 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 +2 -3
- package/changelog.md +12 -0
- package/dist/reporter.d.ts +7 -0
- package/dist/reporter.js +19 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Publish results simple and easy.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
To install the latest beta version, run:
|
|
5
|
+
To install the latest version, run:
|
|
7
6
|
|
|
8
7
|
```bash
|
|
9
|
-
npm install newman-reporter-qase
|
|
8
|
+
npm install newman-reporter-qase
|
|
10
9
|
```
|
|
11
10
|
|
|
12
11
|
## Example of usage
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# qase-newman@2.0.0
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
This is the first release in the 2.x series of the Newman reporter.
|
|
6
|
+
It brings new and more flexible configs, uploading results in parallel with running tests,
|
|
7
|
+
and other powerful features.
|
|
8
|
+
|
|
9
|
+
This changelog entry will be updated soon.
|
|
10
|
+
For more information about the new features and a guide for migration from v1, refer to the
|
|
11
|
+
[reporter documentation](https://github.com/qase-tms/qase-javascript/tree/main/qase-newman#readme)
|
|
12
|
+
|
|
1
13
|
# qase-newman@2.0.0-beta.2
|
|
2
14
|
|
|
3
15
|
## What's new
|
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",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"test": "jest --passWithNoTests",
|
|
37
37
|
"clean": "rm -rf dist"
|
|
38
38
|
},
|
|
39
|
-
"author": "
|
|
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": {
|