wdio-qase-reporter 1.0.0 → 1.0.2

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,21 @@
1
+ # qase-wdio@1.0.2
2
+
3
+ ## What's new
4
+
5
+ Resolved an issue where a custom suite set via `qase.suite` was not included in the test results.
6
+
7
+ # qase-wdio@1.0.1
8
+
9
+ ## What's new
10
+
11
+ Resolved an issue with handling parent test suites, ensuring proper structure and reporting.
12
+
13
+ # qase-wdio@1.0.0
14
+
15
+ ## What's new
16
+
17
+ Major release of the WDIO reporter package.
18
+
1
19
  # qase-wdio@1.0.0-beta.4
2
20
 
3
21
  ## What's new
package/dist/reporter.js CHANGED
@@ -194,18 +194,20 @@ class WDIOQaseReporter extends reporter_1.default {
194
194
  if (testResult === undefined || this.storage.ignore) {
195
195
  return;
196
196
  }
197
- const relations = {};
198
- if (this.storage.suites.length > 0) {
199
- relations.suite = {
200
- data: this.storage.suites.map((suite) => {
201
- return {
202
- title: suite,
203
- public_id: null,
204
- };
205
- }),
206
- };
197
+ if (testResult.relations === null) {
198
+ const relations = {};
199
+ if (this.storage.suites.length > 0) {
200
+ relations.suite = {
201
+ data: this.storage.suites.map((suite) => {
202
+ return {
203
+ title: suite,
204
+ public_id: null,
205
+ };
206
+ }),
207
+ };
208
+ }
209
+ testResult.relations = relations;
207
210
  }
208
- testResult.relations = relations;
209
211
  testResult.execution.duration = testResult.execution.start_time ? Math.round(end_time - testResult.execution.start_time) : 0;
210
212
  testResult.execution.status = status;
211
213
  testResult.execution.stacktrace = err === null ?
package/dist/storage.js CHANGED
@@ -9,9 +9,14 @@ class Storage {
9
9
  items = [];
10
10
  clear() {
11
11
  this.currentFile = undefined;
12
- this.suites = [];
13
12
  this.items = [];
14
13
  this.ignore = false;
14
+ if (this.suites.length > 0) {
15
+ this.suites.pop();
16
+ }
17
+ else {
18
+ this.suites = [];
19
+ }
15
20
  }
16
21
  push(item) {
17
22
  this.items.push(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wdio-qase-reporter",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Qase WebDriverIO Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "sideEffects": false,