testcafe-reporter-qase 2.0.5 → 2.1.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 CHANGED
@@ -1,3 +1,16 @@
1
+ # qase-testcafe@2.1.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
+ # qase-testcafe@2.0.6
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
  # qase-testcafe@2.0.4
2
15
 
3
16
  ## What's new
package/dist/qase.js CHANGED
@@ -8,6 +8,7 @@ exports.qase = void 0;
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const qase_javascript_commons_1 = require("qase-javascript-commons");
10
10
  const uuid_1 = require("uuid");
11
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
11
12
  class qase {
12
13
  static _qaseID = '';
13
14
  static _qaseTitle = '';
@@ -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
@@ -85,7 +86,7 @@ export declare class TestcafeQaseReporter {
85
86
  * @param {Record<string, string>} meta
86
87
  * @param formatError
87
88
  */
88
- reportTestDone: (title: string, testRunInfo: TestRunInfoType, meta: Record<string, string>, formatError: (error: any, prefix: string) => string) => Promise<void>;
89
+ reportTestDone: (title: string, testRunInfo: TestRunInfoType, meta: Record<string, string>, formatError: (error: unknown, prefix: string) => string) => Promise<void>;
89
90
  /**
90
91
  * @returns {Promise<void>}
91
92
  */
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.1.0",
4
4
  "description": "Qase TMS TestCafe Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "author": "Qase Team <support@qase.io>",
41
41
  "license": "Apache-2.0",
42
42
  "dependencies": {
43
- "qase-javascript-commons": "~2.2.14",
43
+ "qase-javascript-commons": "~2.3.0",
44
44
  "uuid": "^9.0.0"
45
45
  },
46
46
  "peerDependencies": {