Skip to content
Browse files

Print the data used to generate the html, as well.

  • Loading branch information...
1 parent 4d50587 commit ace791f2a8eb128e5aaba805ed2c8c24c05163e1 @isaacs isaacs committed Dec 6, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/tap-cov-html.js
View
4 lib/tap-cov-html.js
@@ -35,7 +35,9 @@ var CovHtml = module.exports = function(cov_stats, cov_dir, cb) {
return '<li id="L' + line.number + '" style="background-color: ' + color +
';">' + line.source.replace(/</g, "&lt;") + '</li>';
}).join('\n') +
- '</ol>\n</body>\n</html>';
+ '</ol>\n' +
+ '<h2>Data</h2>\n'+
+ '<pre>' + util.inspect(st, true, Infinity, false).replace(/</g, "&lt;") + '</pre></body>\n</html>';
fs.writeFile(
cov_dir + '/' +

0 comments on commit ace791f

Please sign in to comment.
Something went wrong with that request. Please try again.