Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (23 sloc) 0.787 kb
require 'autotest/growl'
require 'autotest/fsevent'
#require 'autotest/redgreen'
#
#module Autotest::Growl
#
# def self.growl title, msg, img, pri=0, stick=""
# system "growlnotify -n autotest --image #{img} -p #{pri} -m #{ msg.inspect} #{title} #{stick}"
# end
#
# Autotest.add_hook :ran_command do |autotest|
# results = [autotest.results].flatten.join("\n")
# output = results.slice(/(\d+)\s+examples?,\s*(\d+)\s+failures?(,\s*(\d+)\s+pending)?/)
# if output =~ /[1-9]\sfailures?/
# growl "FAIL:", "#{output}", "~/Library/autotest/fail.png", 2, "-s"
# elsif output =~ /[1-9]\spending?/
# growl "PENDING:", "#{output}", "~/Library/autotest/pending.png", 2, "-s"
# else
# growl "PASS:", "#{output}", "~/Library/autotest/pass.png"
# end
# end
#
#end
Jump to Line
Something went wrong with that request. Please try again.