A Karma plugin. Report results in styled html format.
This is a plugin for the Karma Test Runner. By adding this reporter to your karma configuration, unit test results will be exported as a styled HTML file. For each test browser, a separate table is generated. The plugin is based on the karma-junit-reporter plugin.
The easiest way is to keep
karma-htmlfile-reporter as a devDependency in your
You can simple do it by:
npm install karma-htmlfile-reporter --save-dev
// karma.conf.jsconfigsetreporters: 'progress' 'html'htmlReporter:outputFile: 'tests/units.html'// OptionalpageTitle: 'Unit Tests'subPageTitle: 'A sample project description';;
You can pass list of reporters as a CLI argument too:
karma start --reporters html
For more information on Karma see the homepage.