newman-reporter-qase 2.1.1 → 2.1.3
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 +4 -6
- package/dist/reporter.js +1 -12
- package/package.json +2 -2
package/dist/reporter.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import { NewmanRunOptions } from 'newman';
|
|
4
|
+
import { EventList, Item, PropertyBase, PropertyBaseDefinition } from 'postman-collection';
|
|
4
5
|
import { ConfigType, ConfigLoader } from 'qase-javascript-commons';
|
|
5
6
|
export type NewmanQaseOptionsType = ConfigType;
|
|
6
7
|
/**
|
|
@@ -18,21 +19,18 @@ export declare class NewmanQaseReporter {
|
|
|
18
19
|
/**
|
|
19
20
|
* @param {EventList} eventList
|
|
20
21
|
* @returns {number[]}
|
|
21
|
-
* @private
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
static getCaseIds(eventList: EventList): number[];
|
|
24
24
|
/**
|
|
25
25
|
* @param {Item} item
|
|
26
26
|
* @returns {string[]}
|
|
27
|
-
* @private
|
|
28
27
|
*/
|
|
29
|
-
|
|
28
|
+
static getParameters(item: Item): string[];
|
|
30
29
|
/**
|
|
31
30
|
* @param {PropertyBase<PropertyBaseDefinition>} item
|
|
32
31
|
* @returns {string[]}
|
|
33
|
-
* @private
|
|
34
32
|
*/
|
|
35
|
-
|
|
33
|
+
static getParentTitles(item: PropertyBase<PropertyBaseDefinition>): string[];
|
|
36
34
|
/**
|
|
37
35
|
* @type {ReporterInterface}
|
|
38
36
|
* @private
|
package/dist/reporter.js
CHANGED
|
@@ -22,7 +22,6 @@ class NewmanQaseReporter {
|
|
|
22
22
|
/**
|
|
23
23
|
* @param {EventList} eventList
|
|
24
24
|
* @returns {number[]}
|
|
25
|
-
* @private
|
|
26
25
|
*/
|
|
27
26
|
static getCaseIds(eventList) {
|
|
28
27
|
const ids = [];
|
|
@@ -41,7 +40,6 @@ class NewmanQaseReporter {
|
|
|
41
40
|
/**
|
|
42
41
|
* @param {Item} item
|
|
43
42
|
* @returns {string[]}
|
|
44
|
-
* @private
|
|
45
43
|
*/
|
|
46
44
|
static getParameters(item) {
|
|
47
45
|
const params = [];
|
|
@@ -65,7 +63,6 @@ class NewmanQaseReporter {
|
|
|
65
63
|
/**
|
|
66
64
|
* @param {PropertyBase<PropertyBaseDefinition>} item
|
|
67
65
|
* @returns {string[]}
|
|
68
|
-
* @private
|
|
69
66
|
*/
|
|
70
67
|
static getParentTitles(item) {
|
|
71
68
|
let titles = [];
|
|
@@ -227,15 +224,7 @@ class NewmanQaseReporter {
|
|
|
227
224
|
* @private
|
|
228
225
|
*/
|
|
229
226
|
getSignature(suites, title, ids) {
|
|
230
|
-
|
|
231
|
-
for (const suite of suites) {
|
|
232
|
-
signature += suite.toLowerCase().replace(/\s/g, '_') + '::';
|
|
233
|
-
}
|
|
234
|
-
signature += title.toLowerCase().replace(/\s/g, '_');
|
|
235
|
-
if (ids.length > 0) {
|
|
236
|
-
signature += '::' + ids.join('::');
|
|
237
|
-
}
|
|
238
|
-
return signature;
|
|
227
|
+
return (0, qase_javascript_commons_1.generateSignature)(ids, [...suites, title], {});
|
|
239
228
|
}
|
|
240
229
|
/**
|
|
241
230
|
* @param {Item} item
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newman-reporter-qase",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
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": "~2.
|
|
42
|
+
"qase-javascript-commons": "~2.4.1",
|
|
43
43
|
"semver": "^7.5.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|