karma-better-benchmark-reporter
v1.1.0
Published
A reporter for karma benchmark
Downloads
3
Readme
karma-better-benchmark-reporter
Installation
$ npm install karma-better-benchmark-reporter --save-dev
Configuration
//karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['benchmark'],
reporters: ['benchmark'],
benchmarkReporter: {
colors: {
success: 'green',
warning: 'yellow',
error: 'red'
},
frequency: {
interval: 'sec', // or min, hour
decimals: 0 // number of decimals when reporting the operations/interval
}
},
colors: true // set to false to disable colors
});
};
Colors let you override the default colors. Possible color values are chalk colors.
License
Licensed under MIT license.