cypress-qase-reporter 2.2.9 → 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 +5 -3
- package/package.json +1 -1
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
|
},
|