Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masking for browser folder #71

Open
meefox opened this issue Oct 15, 2015 · 2 comments
Open

Masking for browser folder #71

meefox opened this issue Oct 15, 2015 · 2 comments

Comments

@meefox
Copy link

meefox commented Oct 15, 2015

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.

@ghost
Copy link

ghost commented Apr 5, 2016

+1

It would be nice to have control over this

@apellerano-pw
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants