diff --git a/lib/reporter.js b/lib/reporter.js index b1520de..8f73e8a 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -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, {