0.1.0 • Published 7 years ago

karma-min-reporter v0.1.0

Weekly downloads
2,324
License
MIT
Repository
github
Last release
7 years ago

karma-min-reporter

Minimal Karma test reporter that mimics mocha's min reporter.

npm Version Build Status Test Coverage Dependency Status

screenshot

Installation

Install using npm:

$ npm install karma karma-min-reporter --save-dev

Usage

To use the min reporter, add 'min' to the list of desired reporters in your karma.conf.js:

  reporters: ['min']

Since this reporter works best in multi-run mode (due to the fact that it clears the console), the following config settings are also recommended:

  ...
  // Suppress extra logging from Karma (e.g., browser status messages):
  logLevel: config.LOG_WARN,

  // Watch files and execute tests whenever any files changes:
  autoWatch: true,

  // Continuous integration mode. If true, exits process after tests complete.
  singleRun: false
  ...

Alternatively, these settings can be switched with command-line arguments:

$ karma start --reporters=min --auto-watch --no-single-run

License

MIT