Updated .autotest
05.17.08 - 11:36pm
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.
I should parameterize that list of hooks!
Then you could do Autotest::HOOKS