karma-min-reporter

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i karma-min-reporter

Weekly Downloads

229

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jimf