Riot_notifier is a project mainly written in Ruby, it's free.
Notifier for testing framework riot.
= Notifier for testing framework riot.
Notifies you about passes, errors, failures via custom notify libraries like libnotify.
== Usage
require 'riot' require 'riot_notifier'
Riot.reporter = RiotNotifier
=== Advanced usage
require 'riot' require 'riot_notifier'
Riot.reporter = RiotNotifier.try(:Libnotify, :RedgreenBinary) Riot.reporter = RiotNotifier[:Libnotify, :RedgreenBinary] # sugar
Riot.reporter = RiotNotifier::Libnotify
class MyOwn < ::RiotNotifier::Base
end
Riot.reporter = RiotNotifier[MyOwn] # try only this Riot.reporter = RiotNotifier # try MyOwn first (auto-detection)
Riot.reporter = Class.new(RiotNotifier::Base) do def notify(color, msg) MyFancyNotifierGem.notify(:color => color, :message => msg) end
def self.usable?
require 'my_fancy_notifier_gem'
true
rescue LoadError
false
end
end
== Installation
gem install riot_notifier
== Testing
git co git://github.com/splattael/riot_notifier.git cd riot_notifier gem install bundler bundle install rake
== Authors
== TODO