karma-notify-reporter
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/karma-notify-reporter package

    1.3.0 • Public • Published

    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

    Install

    npm i karma-notify-reporter

    DownloadsWeekly Downloads

    4,415

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    10.7 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar