cucumberjs-qase-reporter 2.0.6 → 2.0.7

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 CHANGED
@@ -1,3 +1,9 @@
1
+ # qase-cucumberjs@2.0.7
2
+
3
+ ## What's new
4
+
5
+ Enhanced handling of start and end times for tests and steps, ensuring greater accuracy in reporting.
6
+
1
7
  # qase-cucumberjs@2.0.5
2
8
 
3
9
  ## What's new
package/dist/storage.js CHANGED
@@ -174,9 +174,9 @@ class Storage {
174
174
  author: null,
175
175
  execution: {
176
176
  status: this.testCaseStartedResult[testCase.testCaseStartedId] ?? qase_javascript_commons_1.TestStatusEnum.passed,
177
- start_time: null,
178
- end_time: null,
179
- duration: Math.abs(testCase.timestamp.seconds - tcs.timestamp.seconds),
177
+ start_time: tcs.timestamp.seconds,
178
+ end_time: testCase.timestamp.seconds,
179
+ duration: Math.abs(testCase.timestamp.seconds - tcs.timestamp.seconds) * 1000,
180
180
  stacktrace: error?.stacktrace ?? null,
181
181
  thread: null,
182
182
  },
@@ -224,7 +224,7 @@ class Storage {
224
224
  status: Storage.stepStatusMap[finished.testStepResult.status],
225
225
  start_time: null,
226
226
  end_time: null,
227
- duration: finished.testStepResult.duration.seconds,
227
+ duration: finished.testStepResult.duration.seconds * 1000,
228
228
  },
229
229
  attachments: this.attachments[s.id] ?? [],
230
230
  steps: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cucumberjs-qase-reporter",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Qase TMS CucumberJS Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "main": "./dist/index.js",