Skip to content

Commit

Permalink
FIXED issue karma-runner#42 - Output directory not being used per rep…
Browse files Browse the repository at this point in the history
…orter
  • Loading branch information
kombucha committed Dec 9, 2013
1 parent dad7c37 commit aa86a5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ var CoverageReporter = function(rootConfig, helper, logger) {
var collector = collectors[browser.id];
if (collector) {
pendingFileWritings++;
var out = path.resolve(outDir, browser.name);
var reporterOutDir = helper.isDefined(reporterConfig.dir) ? helper.normalizeWinPath(path.resolve(basePath, reporterConfig.dir)) : outDir,
out = path.resolve(reporterOutDir, browser.name);
helper.mkdirIfNotExists(out, function() {
log.debug('Writing coverage to %s', out);
var options = helper.merge({}, reporterConfig, {
Expand Down

0 comments on commit aa86a5a

Please sign in to comment.