github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

fnando / test_notifier

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 10
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: test_notifier and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Display system notifications (dbus, growl and snarl) after running tests. It works on Mac OS X, Linux and Windows. Powerful when used with Autotest ZenTest gem for Rails apps. — Read more

  cancel

http://github.com/fnando/test_notifier

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added applescript for Growl registration. Improved README file. 
fnando (author)
Tue Mar 24 06:02:23 -0700 2009
commit  2a9cc037a3e32d090a6911b99363b449202af2a1
tree    16166a57e41ed1653686bf84ce5449cf810ee9c5
parent  34b51b29043fc76a74a0a429f6d993b310be63ab
test_notifier /
name age
history
message
file .gitignore Loading commit data...
file History.txt Sat Sep 27 11:25:11 -0700 2008 Fixed custom image path [fnando]
file License.txt Mon Sep 01 18:43:41 -0700 2008 Migrating from Subversion [fnando]
file README.markdown Tue Mar 24 06:02:23 -0700 2009 Added applescript for Growl registration. Impro... [fnando]
file Rakefile Tue Mar 24 06:02:23 -0700 2009 Added applescript for Growl registration. Impro... [fnando]
file TODO.txt Mon Sep 01 18:43:41 -0700 2008 Migrating from Subversion [fnando]
directory lib/
file test_notifier.gemspec
README.markdown

test_notifier

DESCRIPTION:

Inspired by http://railstips.org/2007/7/23/autotest-growl-pass-fail-notifications

After using Growl notification, I decided to write my own plugin because I have to work on Ubuntu and Mac OS X and I missed the notification on my Linux box. This plugin works with Linux, Mac OS X and Windows. All you need to do is install the specific notification library for your OS.

Instead of displaying lots of notifications for each failure, I prefer to be notified about the whole test result (you'll have to check your log file anyway in order to clean up the failures/errors).

INSTALLATION:

Mac OS X

  1. Install Growl (http://growl.info/)
  2. Install the growlnotify script located on the "Extras" directory
  3. Open the Growl Preference Page (System > Growl) and activate the options "Listen for incoming notifications" and "Allow remote application registration" on the Network tab.

Linux

If you're a linux guy, you can choose on of these methods:

  1. Install libnotify-bin and its dependencies:

    sudo aptitude install libnotify-bin

  2. Install xosd-bin

    sudo aptitude install xosd-bin

  3. KDE users don't need to install anything: test_notifier will use knotify.

Windows

  1. Install Snarl: download from http://www.fullphat.net/
  2. Install ruby-snarl:

    gem install ruby-snarl

All

Then, install the gem:

git clone git://github.com/fnando/test_notifier.git
cd test_notifier
rake gem:install

or

sudo gem install fnando-test_notifier --source=http://gems.github.com

USAGE:

If you're using Test::Unit you should add require "test_notifier/test_unit"

If you're using RSpec you should add require "test_notifier/rspec"

If you're using Autotest you should add require "test_notifier/autotest" to the file ~/.autotest

If you want to customize the images, create a directory at ~/.test_notifier and save the images none.png, passed.png, failure.png and error.png.

MAINTAINER

  • Nando Vieira (http://simplesideias.com.br)

COLLABORATORS

  • jeznet (http://github.com/jeznet)

LICENSE:

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server