@wdio/junit-reporter
Advanced tools
Comparing version 8.15.10 to 8.16.1
@@ -29,4 +29,5 @@ import type { RunnerStats, TestStats } from '@wdio/reporter'; | ||
private _format; | ||
private _sameFileName; | ||
} | ||
export default JunitReporter; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -245,3 +245,3 @@ import url from 'node:url'; | ||
const suite = this.suites[suiteKey]; | ||
const sameSpecFileName = url.fileURLToPath(specFileName) === suite.file; | ||
const sameSpecFileName = this._sameFileName(specFileName, suite.file); | ||
if (isCucumberFrameworkRunner && suite.type === type && sameSpecFileName) { | ||
@@ -276,3 +276,9 @@ builder = this._addCucumberFeatureToBuilder(builder, runner, specFileName, suite); | ||
} | ||
_sameFileName(file1, file2) { | ||
// ensure both files are not a file URL | ||
file1 = file1?.startsWith('file://') ? url.fileURLToPath(file1) : file1; | ||
file2 = file2?.startsWith('file://') ? url.fileURLToPath(file2) : file2; | ||
return file1 === file2; | ||
} | ||
} | ||
export default JunitReporter; |
{ | ||
"name": "@wdio/junit-reporter", | ||
"version": "8.15.10", | ||
"version": "8.16.1", | ||
"description": "A WebdriverIO reporter that creates Jenkins compatible XML based JUnit reports", | ||
@@ -45,3 +45,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
}, | ||
"gitHead": "63a02b672216ae86a58475746a5eed5adf0d736f" | ||
"gitHead": "4990bcc97ad93aa1b22ab4c93b32e6e3a7786887" | ||
} |
Sorry, the diff of this file is not supported yet
33066
501