Skip to content

Commit

Permalink
Merge pull request #43 from kombucha/issue-#42-output-directory
Browse files Browse the repository at this point in the history
FIXED issue #42 - Output directory not being used per reporter
  • Loading branch information
vojtajina committed Jan 19, 2014
2 parents dad7c37 + dac4678 commit 9cdeac9
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 9cdeac9

Please sign in to comment.