@wdio/junit-reporter 9.19.0 → 9.19.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.
Files changed (2) hide show
  1. package/build/index.js +2 -2
  2. package/package.json +4 -4
package/build/index.js CHANGED
@@ -302,9 +302,9 @@ ${output}
302
302
  _buildOrderedReport(builder, runner, specFileName, type, isCucumberFrameworkRunner) {
303
303
  const suiteKeys = Object.keys(this.suites);
304
304
  if (suiteKeys.length === 0) {
305
- const error = this.runnerStat?.error ?? "No tests found";
306
305
  if (!isCucumberFrameworkRunner || isCucumberFrameworkRunner && type === "feature") {
307
- return builder.testSuite().testCase().className("").name("").failure(error);
306
+ const testCase = builder.testSuite().testCase().className("").name("");
307
+ return this.runnerStat?.error ? testCase.failure(this.runnerStat.error) : testCase.skipped();
308
308
  }
309
309
  }
310
310
  for (const suiteKey of Object.keys(this.suites)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/junit-reporter",
3
- "version": "9.19.0",
3
+ "version": "9.19.2",
4
4
  "description": "A WebdriverIO reporter that creates Jenkins compatible XML based JUnit reports",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-junit-reporter",
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "typeScriptVersion": "3.8.3",
37
37
  "dependencies": {
38
- "@wdio/reporter": "9.19.0",
39
- "@wdio/types": "9.19.0",
38
+ "@wdio/reporter": "9.19.2",
39
+ "@wdio/types": "9.19.2",
40
40
  "json-stringify-safe": "^5.0.1",
41
41
  "junit-report-builder": "^5.1.1"
42
42
  },
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "be9a42358a6646d48c3ce5a341761f55aa605b24"
49
+ "gitHead": "4ca46771777a0ef20bfd911fbd0da0904059fd9e"
50
50
  }