wdio-qase-reporter 1.1.3 → 1.1.4

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,10 @@
1
+ # qase-wdio@1.1.4
2
+
3
+ ## What's new
4
+
5
+ - Added support for status filter in the test run.
6
+ - Improved error handling.
7
+
1
8
  # qase-wdio@1.1.2
2
9
 
3
10
  ## What's new
package/dist/reporter.js CHANGED
@@ -217,7 +217,16 @@ class WDIOQaseReporter extends reporter_1.default {
217
217
  testResult.relations = relations;
218
218
  }
219
219
  testResult.execution.duration = testResult.execution.start_time ? Math.round(end_time - testResult.execution.start_time) : 0;
220
- testResult.execution.status = status;
220
+ // Convert CompoundError to regular Error for status determination
221
+ let error = null;
222
+ if (err) {
223
+ error = new Error(err.message || 'Test failed');
224
+ if (err.stacktrace) {
225
+ error.stack = err.stacktrace;
226
+ }
227
+ }
228
+ // Determine status based on error type
229
+ testResult.execution.status = (0, qase_javascript_commons_1.determineTestStatus)(error, status);
221
230
  testResult.execution.stacktrace = err === null ?
222
231
  null : err.stacktrace === undefined ?
223
232
  null : err.stacktrace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdio-qase-reporter",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Qase WebDriverIO Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "sideEffects": false,
@@ -32,7 +32,7 @@
32
32
  "author": "Qase Team <support@qase.io>",
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "qase-javascript-commons": "~2.4.1",
35
+ "qase-javascript-commons": "~2.4.2",
36
36
  "uuid": "^9.0.1",
37
37
  "@types/node": "^20.1.0",
38
38
  "@wdio/reporter": "^8.39.0",