karma-nested-reporter

0.1.7 • Public • Published

karma-nested-reporter

A Karma plugin. Report results with each describe indented.

NPM version NPM downloads Dependency Status Gitter Chat for karma-nested-reporter Donate via PayPal Donate via Gratipay Analytics Follow JamieMason on GitHub Follow fold_left on Twitter

screenshot of karma nested reporter

Installation

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

{
  "devDependencies": {
    "karma": ">=0.9",
    "karma-nested-reporter": "0.1.5"
  }
}

You can simply do it with:

npm install karma-nested-reporter --save-dev

Enabling this reporter

It's recommended that you use this reporter instead of the progress reporter.

// karma.conf.js
module.exports = function(config) {
  config.set({
    reporters: ['nested']
  });
};

You can pass list of reporters as a CLI argument too:

karma start --reporters nested

Optional Configuration

Default values

// karma.conf.js
module.exports = function(config) {
  config.set({
    nestedReporter: {
      color: {
        should: 'red',
        browser: 'yellow'
      },
      icon: {
        failure: '✘ ',
        indent: 'ட ',
        browser: ''
      }
    }
  });
};

Colors

This reporter will output in color if colors: true is present in your Karma configuration.

Colors can be optionally overridden with any of the values defined by chalk's colors and styles.

Icons

If the for example isn't your thing, or it doesn't display in your Terminal, this and the other icons can be substituted for others.

The Karma Test Runner

For more information on Karma see the homepage.

Package Sidebar

Install

npm i karma-nested-reporter

Weekly Downloads

315

Version

0.1.7

License

MIT

Unpacked Size

48.9 kB

Total Files

11

Last publish

Collaborators

  • fold_left