Coder Social home page Coder Social logo

karma-notify-reporter's Introduction

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

karma-notify-reporter's People

Contributors

emilbjorklund avatar jdcataldo avatar kopach avatar koshuang avatar manuelrauber avatar mohannadnaj avatar neagle avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

karma-notify-reporter's Issues

Can we use the latest version of node-notifier?

If we use the latest node-notifier version, this would work by default on ubuntu.
The latest version of node-notifier uses libnotify-bin package instead of notify-send if available. libnotify-bin comes with ubuntu by default.

Option to notify when tests go from red to green?

It would be nice to be notified when previously failing tests are passing, but not recieve notifications when tests contiue to pass, as its only changes in pass state that are primarily interesting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.