Autotest on OSX

Download the required gems

# required for autotest and rails
sudo gem install autotest autotest-rails

# use osx 10.5 fsevent library instead of traversing the filesystem for changes (lowers CPU usage)
sudo gem install autotest-fsevent

# gives us pretty red, green messages upon failure and succes
sudo gem install redgreen

# provide growl notifications upon success and failures
sudo gem install autotest-growl

now we just include the gems we just installed in our ~/.autotest file

# require gems
require 'autotest/fsevent'
require 'autotest/growl'
require 'redgreen/autotest'

# tell autotest to ignore directories
Autotest.add_hook :initialize do |autotest|
%w{.git .svn .hg .DS_Store ._* vendor}.each {|exception| autotest.add_exception(exception) }
false
end

About stevestmartin

A Web Application Developer based out of Tampa, FL. Currently employed as a Sr. Developer doing PHP / MySQL and UI development at TraderPlanet a social network for traders and investors. Current focuses are Ruby, Rails, BDD and Audio Production
This entry was posted in Programming, Ruby. Bookmark the permalink.

One Response to Autotest on OSX

  1. Joshua says:

    Much thanks. Getting autotest to work with growl notifications is way easier than it was a year or so ago when I first set this up.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>