1. karma-growl-reporter
A Karma plugin. Report results with growl.
karma-growl-reporter
Package: karma-growl-reporter
Created by: karma-runner
Last modified: Sun, 19 Jun 2022 07:58:04 GMT
Version: 1.0.0
License: MIT
Downloads: 6,778
Repository: https://github.com/karma-runner/karma-growl-reporter

Install

npm install karma-growl-reporter
yarn add karma-growl-reporter

karma-growl-reporter

Report test results using Growl.

Installation

At first, make sure you have Growl for Mac / Windows / Linux.
This plugin uses growly, which uses the Growl Network Transport Protocol (GNTP), which was implemented in Growl since version 1.3, so you must have an appropriate version of Growl installed for this plugin to work.

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

 {
  "devDependencies": {
    "karma": "~0.10",
    "karma-growl-reporter": "~0.1"
  }
}

You can simple do it by:

 npm install karma-growl-reporter --save-dev

Configuration

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

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

 karma start --reporters growl,dots

Message Prefix (Optional)

Adds a prefix to the growl message to help differentiate which tests have passed or failed. This is especially usefull if you are running multiple auto-watch instances of karma in parallel.

karma-unit.conf

 module.exports = function(config){
    config.set({
        reporters: ['progress','growl'],
        growlReporter:{
            prefix:'UNIT TESTS-'
        }
   });
};

karma-production.conf

 module.exports = function(config){
    config.set({
        reporters: ['progress','growl'],
        growlReporter:{
            prefix:'PRODUCTION TESTS-'
        }
   });
};

screen shot 2013-08-24 at 2 37 18 pm


For more information on Karma see the homepage.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code