1.1.0 • Published 8 years ago

karma-better-benchmark-reporter v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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.