いつの間にかautotest-growlがlibnotifyにも対応していた

libnotifyとgemをインストール

% sudo aptitude install libnotify-bin
% sudo gem i autotest-growl

設定はこんだけで

# .autotest
require 'autotest/growl'

あとは適当に

# lib/hoge.rb
class Hoge
  def bar
    'Hello'
  end
end
# test/test_hoge.rb
require 'test/unit'
require 'lib/hoge'

class TestHoge < Test::Unit::TestCase
  def test_bar
    assert Hoge.new.bar == 'Hello'
  end
end

autotestを実行する

% autotest

テストが自動実行されてパスするので緑のがびよーんと


失敗させてみる

# lib/hoge.rb
class Hoge
  def bar
    'Goodby'
  end
end

テストが自動実行されて失敗するので赤いのがびよーんと