karma-junit-reporter icon indicating copy to clipboard operation
karma-junit-reporter copied to clipboard

Masking for browser folder

Open meefox opened this issue 9 years ago • 2 comments

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.

meefox avatar Oct 15 '15 13:10 meefox

+1

It would be nice to have control over this

ghost avatar Apr 05 '16 13:04 ghost

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'),
},

apellerano-pw avatar Jan 28 '19 23:01 apellerano-pw