testcafe-reporter-qase 2.0.5 → 2.0.6

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-testcafe@2.0.6
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-testcafe@2.0.4
2
8
 
3
9
  ## What's new
@@ -67,6 +67,7 @@ export declare class TestcafeQaseReporter {
67
67
  private reporter;
68
68
  private steps;
69
69
  private attachments;
70
+ private testBeginTime;
70
71
  /**
71
72
  * @param {TestcafeQaseOptionsType} options
72
73
  * @param {ConfigLoaderInterface} configLoader
package/dist/reporter.js CHANGED
@@ -58,6 +58,7 @@ class TestcafeQaseReporter {
58
58
  reporter;
59
59
  steps = [];
60
60
  attachments = [];
61
+ testBeginTime = Date.now();
61
62
  /**
62
63
  * @param {TestcafeQaseOptionsType} options
63
64
  * @param {ConfigLoaderInterface} configLoader
@@ -87,6 +88,7 @@ class TestcafeQaseReporter {
87
88
  reportTestStart = () => {
88
89
  this.steps = [];
89
90
  this.attachments = [];
91
+ this.testBeginTime = Date.now();
90
92
  };
91
93
  /**
92
94
  * @param {string} title
@@ -110,8 +112,8 @@ class TestcafeQaseReporter {
110
112
  author: null,
111
113
  execution: {
112
114
  status: TestcafeQaseReporter.getStatus(testRunInfo),
113
- start_time: null,
114
- end_time: null,
115
+ start_time: this.testBeginTime / 1000,
116
+ end_time: (this.testBeginTime + testRunInfo.durationMs) / 1000,
115
117
  duration: testRunInfo.durationMs,
116
118
  stacktrace: errorLog,
117
119
  thread: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testcafe-reporter-qase",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Qase TMS TestCafe Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",