Nucleus Powered Mitochondria
Wondering what’s next for npm?Check out our public roadmap! »

karma-timer-reporter

1.0.3 • Public • Published

karma-timer-reporter

NPM version Build Status

This reporter will list your slowest running tests in your console.

Installation

The easiest way is to keep karma-timer-reporter as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-timer-reporter": "~0.1"
  }
}

You can add it to package.json with the following command:

npm install karma-timer-reporter --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    reporters: ['progress', 'timer'],
 
    // the default configuration
    timerReporter: {
      maxLogLines: 10 // max slow tests to list
    },
    
    // add to plugins
    plugins: [
      // other plugins
      'karma-timer-reporter'
    ],
 
  });
};

Install

npm i karma-timer-reporter

DownloadsWeekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

6.45 kB

Total Files

6

Last publish

Collaborators

  • avatar