cypress-qase-reporter 2.2.8 → 2.2.10
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 +6 -0
- package/dist/reporter.js +7 -3
- package/package.json +2 -2
package/changelog.md
CHANGED
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();
|
|
@@ -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
|
},
|
|
@@ -281,6 +283,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
281
283
|
step.data = {
|
|
282
284
|
action: message.name,
|
|
283
285
|
expected_result: null,
|
|
286
|
+
data: null,
|
|
284
287
|
};
|
|
285
288
|
if (lastIndex === messages.indexOf(message) && testStatus !== 'passed') {
|
|
286
289
|
step.execution.status = qase_javascript_commons_1.StepStatusEnum.failed;
|
|
@@ -302,6 +305,7 @@ class CypressQaseReporter extends mocha_1.reporters.Base {
|
|
|
302
305
|
newStep.data = {
|
|
303
306
|
action: step.name,
|
|
304
307
|
expected_result: null,
|
|
308
|
+
data: null,
|
|
305
309
|
};
|
|
306
310
|
if (attachments[step.id]) {
|
|
307
311
|
newStep.attachments = attachments[step.id] ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-qase-reporter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
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.2.
|
|
54
|
+
"qase-javascript-commons": "~2.2.14",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|