Updated .autotest

I just brought a new project into the world of autotest. I’m not using the Leopard FSEvents “fix” because it’s not necessary (note the sleep and add_exception calls below). I am using the fun and helpful sound plugin, but not the playlist version of that plugin. Here’s my .autotest file.

Autotest.add_hook :initialize do |autotest|
    autotest.sleep=3
    autotest.add_exception(/\/.git\//)
end

require '/Users/jamieflournoy/autotest/sound/sound'
Autotest::Sound.sound_app = '/opt/local/bin/mpg321'
Autotest::Sound.sound_path = "/Users/jamieflournoy/autotest/sound/sound_fx/"

Note that the sound plugin needs a patch:

29c29
<   [:run, :red, :green, :quit, :run_command, :ran_command].each do |hook|
---
>   [:initialize, :red, :green, :quit, :run_command, :ran_command].each do |hook|

You’ll also need to make sure your sound set has an initialize.mp3 instead of a run.mp3.

The Conversation {1 comments}

  1. Ryan Davis (http://blog.zenspider.com/) {Monday May 19, 2008 @ 4:44 pm}

    I should parameterize that list of hooks!

    Then you could do Autotest::HOOKS

Speak Your Peace