karma-junit-reporter
karma-junit-reporter copied to clipboard
Masking for browser folder
Would be nice to have a more control on browser folder.
Browser folder could be masked as %browser%
in outputDir like outputDir: "myfolder/%browser%/report"
and skip the browser folder generation when outputFile was specified (keep it only for file name).
Moreover is good to have %browserBasic%
which drop browser version like Chrome_46.0.2490_(Windows_8_0.0.0) -> chrome
Or at least accepting a method in order to override it's behavior.
wdyt? p.s. Can to do that.
+1
It would be nice to have control over this
If anyone else ends up here because they want to remove the browser folder from the path completely, you can specify an absolute path for outputFile
to get that behavior.
relevant line: https://github.com/karma-runner/karma-junit-reporter/blob/v1.2.0/index.js#L69
karma.conf.js entry
junitReporter: {
outputFile: path.resolve(__dirname, 'blahblahblah.xml'),
},