Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Report Karma test runner results to Ubuntu notification
JavaScript
branch: master

This branch is 4 commits ahead, 11 commits behind petrbela:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
CONTRIBUTING.md
LICENSE
README.md
index.js
package.json

README.md

karma-ubuntu-reporter

Reporter using Ubuntu notifications.

Based on karma-osx-notifier.

Only works with Karma 0.9 or later which enables custom plugins.

For more information on Karma see the homepage.

Installation

  1. Install socat, Karma and karma-ubuntu-reporter plugin. The plugin requires Karma 0.9+, but Karma's stable version is now 0.10 so it's pretty easy.

    a. Globally. System-wide with karma available on command line.

      apt-get install socat
      npm install -g karma
      npm install -g karma-ubuntu-reporter
    

    b. Locally. If you want to install Karma to your project instead, add the dependencies to package.json and run npm install:

      "devDependencies": {
        "karma": ">=0.9",
        "karma-ubuntu-notifier": "*"
      }

    If you install locally, you'll need to run Karma using node_modules/.bin/karma.

    In any case, the plugin needs to be installed as a peer dependency to Karma (i.e. in the sibling folder). This just means you cannot use global Karma with local plugins or vice-versa.

  2. Add dependency to the plugin section in Karma config file (syntax shown for Karma 0.9.3+):

      karma.configure({
        ...
        plugins: [
          'karma-ubuntu-reporter'
        ],
        ...
      })
  3. Define it as a reporter in the config file

    reporters: ['ubuntu']

    or pass through the command line

    $ karma start --reporters=ubuntu karma.conf.js

License

MIT License

Something went wrong with that request. Please try again.