@wdio/junit-reporter 7.25.1 → 7.26.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/build/index.js CHANGED
@@ -125,6 +125,7 @@ class JunitReporter extends reporter_1.default {
125
125
  return builder;
126
126
  }
127
127
  _addSuiteToBuilder(builder, runner, specFileName, suite) {
128
+ var _a, _b;
128
129
  const filePath = specFileName.replace(process.cwd(), '.');
129
130
  const suiteName = !this.options.suiteNameFormat || this.options.suiteNameFormat instanceof RegExp
130
131
  ? this._prepareName(suite.title)
@@ -155,7 +156,7 @@ class JunitReporter extends reporter_1.default {
155
156
  if (test.state === 'pending' || test.state === 'skipped') {
156
157
  testCase.skipped();
157
158
  if (test.error) {
158
- testCase.standardError(`\n${test.error.stack}\n`);
159
+ testCase.standardError(`\n${(_a = test.error.stack) === null || _a === void 0 ? void 0 : _a.replace(ansiRegex, '')}\n`);
159
160
  }
160
161
  }
161
162
  else if (test.state === 'failed') {
@@ -173,7 +174,7 @@ class JunitReporter extends reporter_1.default {
173
174
  // default
174
175
  testCase.error(test.error.message);
175
176
  }
176
- testCase.standardError(`\n${test.error.stack}\n`);
177
+ testCase.standardError(`\n${(_b = test.error.stack) === null || _b === void 0 ? void 0 : _b.replace(ansiRegex, '')}\n`);
177
178
  }
178
179
  else {
179
180
  testCase.error();
package/build/types.d.ts CHANGED
@@ -20,23 +20,6 @@ interface TestSuiteNameFormatOptions {
20
20
  suite: SuiteStats;
21
21
  }
22
22
  export interface JUnitReporterOptions extends Reporters.Options {
23
- /**
24
- * Define the xml files created after the test execution.
25
- *
26
- * > Note: `options.capabilities` is your capabilities object for that runner, so specifying
27
- * `${options.capabilities}` in your string will return [Object object]. You must specify which
28
- * properties of capabilities you want in your filename.
29
- *
30
- * @example
31
- * outputFileFormat: function (options) {
32
- * return 'mycustomfilename.xml'
33
- * }
34
- * @default
35
- * outputFileFormat: function (options) {
36
- * return `wdio-${this.cid}-${opts.name}-reporter.log`
37
- * }
38
- */
39
- outputFileFormat?: (opts: any) => string;
40
23
  /**
41
24
  * Gives the ability to provide custom regex for formatting test suite name (e.g. in output xml ) or
42
25
  * override the generated name of a test suite.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,aAAK,qBAAqB,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,MAAM,CAAA;AAE5E,UAAU,sBAAsB;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAA;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,UAAU,0BAA0B;IAChC,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,SAAS,CAAC,OAAO;IAC3D;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,CAAA;IACxC;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;IAChD;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAA;IAC7D;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,aAAK,qBAAqB,GAAG,CAAC,OAAO,EAAE,0BAA0B,KAAK,MAAM,CAAA;AAE5E,UAAU,sBAAsB;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,GAAG,CAAA;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,UAAU,0BAA0B;IAChC,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,KAAK,EAAE,UAAU,CAAA;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,SAAS,CAAC,OAAO;IAC3D;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAA;IAChD;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAA;IAC7D;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/junit-reporter",
3
- "version": "7.25.1",
3
+ "version": "7.26.0",
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",
@@ -26,8 +26,8 @@
26
26
  "dependencies": {
27
27
  "@types/json-stringify-safe": "^5.0.0",
28
28
  "@types/validator": "^13.1.3",
29
- "@wdio/reporter": "7.25.1",
30
- "@wdio/types": "7.25.1",
29
+ "@wdio/reporter": "7.26.0",
30
+ "@wdio/types": "7.26.0",
31
31
  "json-stringify-safe": "^5.0.1",
32
32
  "junit-report-builder": "^3.0.0",
33
33
  "validator": "^13.0.0"
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "db1d40ed9cf0ccfe50d355007818d04055a461aa"
41
+ "gitHead": "573927a79dc0a2b9d9a9e19e7d1b8c1ff9fac308"
42
42
  }