Sha256: 666d94a11b0cb51c1a33fc33a5a923a826efc4aac364148788f16db85e40df1a
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
= Notifier for testing framework riot. Notifies you about passes, errors, failures via custom notify libraries like libnotify. == Usage # in your test/helper.rb require 'riot' require 'riot_notifier' # Auto-detect in load order Riot.reporter = RiotNotifier === Advanced usage require 'riot' require 'riot_notifier' # Auto-detect in specified order notifier defined in RiotNotifier Riot.reporter = RiotNotifier.try(:Libnotify, :RedgreenBinary) Riot.reporter = RiotNotifier[:Libnotify, :RedgreenBinary] # sugar # Use specific notifier class (libnotify) Riot.reporter = RiotNotifier::Libnotify # Use my own notifier class MyOwn < ::RiotNotifier::Base # override .notify and #usable? end Riot.reporter = RiotNotifier[MyOwn] # try only this Riot.reporter = RiotNotifier # try MyOwn first (auto-detection) # Use my own inline 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 == Authors * Peter Suschlik == TODO * riot's assertions support blocks! (like asserts_topic.equals { topic }). Use it! * Test auto-detection and Libnotify
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riot_notifier-0.0.7 | README.rdoc |