esnext-coverage-format-html
HTML formatter for esnext-coverage.
Similar to other coverage formatters, esnext-coverage-format-html accepts a coverage results object and produces a report as an utf8-encoded string.
Installation
npm install esnext-coverage-format-html --save-dev
Usage
Usage with test frameworks
Add esnext-coverage-format-html to the list of reporters in esnext-coverage configuration object or to your karma configuration file.
reporters: formatter: 'html' // require esnext-coverage-format-html outFile: 'reports/coverage.html' // write output to file
Usage with esnext-coverage cli
esnext-coverage format coverage.json -f html -o report.html
Usage in Node
;; fs;