Sha256: 4f9a3b0fe292902facfc5c218ba4eafd77eddc03d9911434728a1fb016c3339f
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
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 |at| puts "at: '#{at.results}'" output = at.results.slice(/(\d+)\s.*specifications?,\s(\d+)\s.*failures?/) puts "out: #{output}" if output =~ /[1-9]\sfailures?/ growl "Test Results", "#{output}", '../icons/fail.png', 2 #, "-s" else growl "Test Results", "#{output}", '../icons/ok.png' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
andhapp-decoct-1.5.4 | lib/templates/.autotest |
andhapp-decoct-1.6.4 | lib/templates/.autotest |
andhapp-decoct-1.7.4 | lib/templates/.autotest |
andhapp-decoct-1.8.4 | lib/templates/.autotest |