Karma Minimal Reporter

0.1.0 · maintenance · verified Sun Apr 19

The `karma-min-reporter` package offers a minimalist test reporting experience for the Karma test runner, emulating the concise output style found in Mocha's `min` reporter. Currently at version 0.1.0, this plugin is designed for developers who prefer a clean console output during continuous integration or development workflows. Its primary feature is clearing the console before each test run, which is most effective when Karma is configured for `autoWatch: true` and `singleRun: false`. The package differentiates itself by prioritizing visual brevity over verbose logging, aiming to reduce screen clutter and improve focus during active development. Given its low version number and the nature of Karma plugins, it suggests a mature but infrequently updated project, likely in a maintenance state, providing a stable, specific reporting utility without a rapid release cadence.

Common errors

Warnings

Install

Imports

Quickstart

Configures `karma.conf.js` to use `karma-min-reporter` and illustrates command-line execution with recommended settings for continuous testing.

module.exports = function(config) {
  config.set({
    frameworks: ['jasmine'], // Example framework, adjust as needed
    files: [
      'src/**/*.js',
      'test/**/*.spec.js'
    ],
    
    // Enable the minimal reporter
    reporters: ['min'],

    // Recommended settings for 'min' reporter's console-clearing feature
    logLevel: config.LOG_WARN,   // Suppress verbose Karma logging (e.g., browser connection)
    autoWatch: true,             // Watch files for changes and re-run tests
    singleRun: false             // Keep Karma running for continuous testing sessions
  });
};

// To install dependencies:
// npm install --save-dev karma karma-min-reporter jasmine-core karma-jasmine

// To run Karma with these settings from the command line:
// karma start --reporters=min --auto-watch --no-single-run

view raw JSON →