A better html reporter for karma
- Fixed Error caused in recent karma version.
- Added
openReportInBrowser
option to open the report in the browser after the test concludes.
- Fixed bug where when
singleRun
mode is off, it renders an aggregated list leading to incorrect
- Added Badge
- Added SemanticUi Icons to the stack
- Icons for success/failure indicators on tests
exclusiveSections
config setting- More Prominent error logging
npm install karma-dhtml-reporter
module.exports = function (config) {
config.set({
...
dhtmlReporter: {
'outputFile' : 'output/file/location/report.html',
'exclusiveSections': true,
'openReportInBrowser': false
},
reporters: ['DHTML'],
plugins: [
...
'karma-dhtml-reporter'
]
})
}
This indicates where you want the output file to be generated
If true, it only allows one section amidst its siblings to be open at a given time. Disable to allow opening multiple sections.
If true, it will open the generated report in your default browser. (uses open
package from npm - check for supported platforms)
If false, it will log reporter options on initialize.