UNPKG

karma-notify-reporter

Version:

A karma reporter that reports results with OSX Notification Center, Growl or notify-send.

47 lines (35 loc) 1.3 kB
# karma-notify-reporter > Report test results using OSX Notification Center, [Growl](http://growl.info/) or notify-send. [![Downloads](https://img.shields.io/npm/dm/karma-notify-reporter.svg)](https://www.npmjs.com/package/karma-notify-reporter) Built on top of [node-notifier](https://github.com/mikaelbr/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 ```js npm install karma-notify-reporter --save-dev ``` ### ## Configuration ```js // 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: ```bash karma start --reporters notify,dots ```