Permalink
Browse files

Saving JSON file for debugging

  • Loading branch information...
1 parent aa3299f commit 94ebd7a7cfadb1c4775145827d834c185006b5b4 @davglass davglass committed Oct 2, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/cmds/serve.js
View
@@ -177,6 +177,9 @@ mods = {
rimraf.sync(istanbulBase);
}
mkdirp(istanbulBase, function() {
+ var jsonFile = path.join(istanbulBase, 'istanbul.json');
+ log.debug('writing coverage json here: ' + jsonFile);
+ fs.writeFileSync(jsonFile, JSON.stringify(req.body, null, 4), 'utf8');
collect = new istanbul.Collector();
collect.add(req.body);
report = istanbul.Report.create('html', {

0 comments on commit 94ebd7a

Please sign in to comment.