karma-min-reporter

Minimal test reporter for Karma

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
karma-min-reporter
300.1.07 years ago7 years agoMinified + gzip package size for karma-min-reporter in KB

Readme

karma-min-reporter
Minimal Karma test reporter that mimics mocha's min reporter.
!npm Versionnpm-badgenpm !Build Statusbuild-badgebuild-status !Test Coveragecoverage-badgecoverage-result !Dependency Statusdep-badgedep-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