karma-notify-reporter
A karma reporter that reports results with OSX Notification Center, Growl or notify-send.
Last updated 9 months ago by jdcataldo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install karma-notify-reporter 
SYNC missed versions from official npm registry.

karma-notify-reporter

Report test results using OSX Notification Center, Growl or notify-send.

Downloads

Built on top of node-notifier.

By default Notification Center will be used on Mac, notify-send will be used on Linux, and Growl will be used if neither Mac 10.8 or Linux.

Installation

npm install karma-notify-reporter --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    // If you have plugins listed explicitly, add karma-notify-reporter,
    // otherwise it will be loaded automatically.
    plugins: [
      ...
      'karma-notify-reporter'
    ],
  
    reporters: ['progress', 'notify'],

    // Optional Settings
    notifyReporter: {
      reportEachFailure: true, // Default: false, Will notify on every failed spec
      reportSuccess: false, // Default: true, Will notify when a suite was successful
      reportBackToSuccess: false, // Default: true, Will notify when a suite was back to successful
    }
  });
};

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

karma start --reporters notify,dots

Current Tags

  • 1.2.0                                ...           latest (9 months ago)

5 Versions

  • 1.2.0                                ...           9 months ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 25
This Month 29
Last Day 9
Last Week 48
Last Month 162
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |