autospecの結果をgrowlで通知

インストール

growl

こちらからGrowl

autotest-growl

ZenTestからautotest及びautotest用のモジュールが
それぞれ別gemになった模様。
(ZenTest入れてない人は、gem install ZenTestで入れてください。)

$ sudo gem install autotest-growl

In order to use autotest-growl, the following line has to be added to your
~/.autotest file:

require 'autotest/growl'

Make sure the notification service installed on your computer:

http://growl.info (Growl for Mac OS X)
http://growlforwindows.com (Growl for Windows)
http://www.galago-project.org (libnotify for Linux)

If Growl notifications are not always displayed, take a look at the README
for assistance.

For more information, feedback and bug submissions, please visit:

http://www.bitcetera.com/products/autotest-growl

If you like this gem, please consider to recommend me on Working with
Rails, thank you!

http://workingwithrails.com/recommendation/new/person/11706-sven-schwyn

+-------------------------------------------------------------------------+
| UPGRADING USERS please take a look at the README now for important news |
| related to modified dependencies since 0.1.x and Rails compatibility.   |
+-------------------------------------------------------------------------+

上記は、インストール時に表示されるメッセージですが
なんとwindows版growlも開発されているというメッセージが。
近々使ってみたいと思います。

設定

メッセージ通り
~/.autotestを作成し下記を保存します。
require 'autotest/growl'

稼働確認

#~/.autotest
require 'autotest/growl'

autotest(autospec)を実行。

こ、これは楽しい。

画像は

下記に格納されています。
/opt/local/lib/ruby/gems/1.8/gems/autotest-growl-0.2.3/img/ruby


あと.autotestのsampleは下記。
/opt/local/lib/ruby/gems/1.8/gems/ZenTest-4.3.1/example_dot_autotest.rb

補足

以前は、growlnotify が必要なようでしたが
現在は無しでも動きます。(素晴らしい!)
(探せば結構情報がありますが、旧バージョンの情報が多いようです。)