cypress-qase-reporter 2.2.0 → 2.2.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 +14 -0
- package/dist/reporter.d.ts +6 -0
- package/dist/reporter.js +13 -1
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# cypress-qase-reporter@2.2.1
|
|
2
|
+
|
|
3
|
+
## What's new
|
|
4
|
+
|
|
5
|
+
When specifying test names, QaseIDs are now excluded from the final test name.
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
// The test name will be 'Example', not 'Example (Qase ID: 1)'
|
|
9
|
+
qase(1,it('Example', () => {
|
|
10
|
+
expect(true).to.equal(true);
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
```
|
|
14
|
+
|
|
1
15
|
# cypress-qase-reporter@2.2.0
|
|
2
16
|
|
|
3
17
|
## What's new
|
package/dist/reporter.d.ts
CHANGED
|
@@ -70,6 +70,12 @@ export declare class CypressQaseReporter extends reporters.Base {
|
|
|
70
70
|
* @private
|
|
71
71
|
*/
|
|
72
72
|
private getFile;
|
|
73
|
+
/**
|
|
74
|
+
* @param {string} title
|
|
75
|
+
* @returns {string}
|
|
76
|
+
* @private
|
|
77
|
+
*/
|
|
78
|
+
private removeQaseIdsFromTitle;
|
|
73
79
|
private getSteps;
|
|
74
80
|
}
|
|
75
81
|
export {};
|
package/dist/reporter.js
CHANGED
|
@@ -169,7 +169,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
169
169
|
thread: null,
|
|
170
170
|
},
|
|
171
171
|
testops_id: ids.length > 0 ? ids : null,
|
|
172
|
-
title: metadata?.title ?? test.title,
|
|
172
|
+
title: metadata?.title ?? this.removeQaseIdsFromTitle(test.title),
|
|
173
173
|
};
|
|
174
174
|
void this.reporter.addTestResult(result);
|
|
175
175
|
manager_1.MetadataManager.clear();
|
|
@@ -209,6 +209,18 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
209
209
|
}
|
|
210
210
|
return undefined;
|
|
211
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* @param {string} title
|
|
214
|
+
* @returns {string}
|
|
215
|
+
* @private
|
|
216
|
+
*/
|
|
217
|
+
removeQaseIdsFromTitle(title) {
|
|
218
|
+
const matches = title.match(/\(Qase ID: ([0-9,]+)\)$/i);
|
|
219
|
+
if (matches) {
|
|
220
|
+
return title.replace(matches[0], '').trimEnd();
|
|
221
|
+
}
|
|
222
|
+
return title;
|
|
223
|
+
}
|
|
212
224
|
getSteps(steps, attachments) {
|
|
213
225
|
const result = [];
|
|
214
226
|
const stepMap = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-qase-reporter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Qase Cypress Reporter",
|
|
5
5
|
"homepage": "https://github.com/qase-tms/qase-javascript",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"author": "Qase Team <support@qase.io>",
|
|
48
48
|
"license": "Apache-2.0",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"qase-javascript-commons": "~2.2.
|
|
50
|
+
"qase-javascript-commons": "~2.2.3",
|
|
51
51
|
"uuid": "^9.0.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|