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

Output directory not being used per reporter #42

Closed
JoshSchreuder opened this issue Dec 9, 2013 · 0 comments
Closed

Output directory not being used per reporter #42

JoshSchreuder opened this issue Dec 9, 2013 · 0 comments

Comments

@JoshSchreuder
Copy link

The example:

coverageReporter: {
  reporters:[
    {type: 'html', dir:'somedir/'},
    {type: 'teamcity'},
    {type: 'text-summary'}
  ],
}

Does not output html to somedir/, I think because of https://github.com/karma-runner/karma-coverage/blob/master/lib/reporter.js#L44 which only takes into account the directory of the coverageReporter object.

So if you specify as follows:

coverageReporter: {
  dir:'somedir/',
  reporters:[
    {type: 'html'},
    {type: 'teamcity'},
    {type: 'text-summary'}
  ],
}

HTML will be output to somedir/. Of course, this means that you can't have different directories for each reporter, so I think this is a bug.

kombucha added a commit to kombucha/karma-coverage that referenced this issue Dec 9, 2013
vojtajina added a commit that referenced this issue Jan 19, 2014
FIXED issue #42 - Output directory not being used per reporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant