adana-format-text
Unit test coverage reporter for Adana.
Installation
npm install adana-format-text --save-dev
Usage
Similar to other adana coverage formatters, adana-format-text accepts an adana-compatible coverage results object and produces a report as utf8-encoded string.
adana-cli
Usage withcat coverage.json | adana --format text > report.txt
karma-adana-reporter
Usage withAdd adana-format-text to the list of formatters in adana configuration object of the karma configuration file.
formatters: type: 'text' // indicates usage of the "text" formatter save: 'reports/text-report.txt' // will write output to file show: true // will dump the same output to console
Usage in Node
;; fs;
Note that if you're using ES5, you will have to access the library via the default
property due to the way exports are handled in Babel 6:
var adanaFormatText = default;