cypress-qase-reporter 2.2.9 → 2.3.0
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 +13 -0
- package/dist/fileSearcher.js +1 -0
- package/dist/reporter.js +6 -4
- package/package.json +2 -2
package/changelog.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
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
|
+
|
|
8
|
+
# cypress-qase-reporter@2.2.10
|
|
9
|
+
|
|
10
|
+
## What's new
|
|
11
|
+
|
|
12
|
+
Enhanced handling of start and end times for tests and steps, ensuring greater accuracy in reporting.
|
|
13
|
+
|
|
1
14
|
# cypress-qase-reporter@2.2.8
|
|
2
15
|
|
|
3
16
|
## 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
|
@@ -101,6 +101,8 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
101
101
|
* @private
|
|
102
102
|
*/
|
|
103
103
|
addTestResult(test) {
|
|
104
|
+
const end_time = Date.now();
|
|
105
|
+
const duration = end_time - this.testBeginTime;
|
|
104
106
|
const metadata = manager_1.MetadataManager.getMetadata();
|
|
105
107
|
if (metadata?.ignore) {
|
|
106
108
|
manager_1.MetadataManager.clear();
|
|
@@ -164,7 +166,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
168
|
const result = {
|
|
167
|
-
attachments: attachments
|
|
169
|
+
attachments: attachments,
|
|
168
170
|
author: null,
|
|
169
171
|
fields: metadata?.fields ?? {},
|
|
170
172
|
message: message,
|
|
@@ -180,9 +182,9 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
180
182
|
status: test.state
|
|
181
183
|
? CypressQaseReporter.statusMap[test.state]
|
|
182
184
|
: qase_javascript_commons_1.TestStatusEnum.invalid,
|
|
183
|
-
start_time:
|
|
184
|
-
end_time:
|
|
185
|
-
duration:
|
|
185
|
+
start_time: this.testBeginTime / 1000,
|
|
186
|
+
end_time: end_time / 1000,
|
|
187
|
+
duration: duration,
|
|
186
188
|
stacktrace: test.err?.stack ?? null,
|
|
187
189
|
thread: null,
|
|
188
190
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-qase-reporter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
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.0",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|