From c9ef5c9f3f9029acad9d1817dbeadd6eed30a33d Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 31 Oct 2013 12:12:49 -0700 Subject: [PATCH] feat: log where the coverage reports are generated --- lib/reporter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/reporter.js b/lib/reporter.js index fc8bc41..7e4385f 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -85,7 +85,9 @@ var CoverageReporter = function(rootConfig, helper, logger) { helper.mkdirIfNotExists(outDir, function() { var now = dateformat(new Date(), 'yyyymmdd_HHMMss'); var name = 'coverage-' + browser.name + '-' + now + '.json'; - fs.writeFile(path.join(outDir, name), JSON.stringify(collector.getFinalCoverage()), 'utf8', function(err) { + var filepath = path.join(outDir, name); + log.debug('Writing coverage to %s', filepath); + fs.writeFile(filepath, JSON.stringify(collector.getFinalCoverage()), 'utf8', function(err) { if (err) { log.error(err); } @@ -108,6 +110,7 @@ var CoverageReporter = function(rootConfig, helper, logger) { pendingFileWritings++; var out = path.resolve(outDir, browser.name); helper.mkdirIfNotExists(out, function() { + log.debug('Writing coverage to %s', out); var options = helper.merge({}, reporterConfig, { dir : out, sourceStore : new BasePathStore({