Installing AutoTest

August 6th, 2009

I think autotest is one of the best things about developing in Rails. If you don’t know, autotest runs in the background watching all of your application files. When you edit any of them, it automatically runs the sections of your test suite that apply to the modified file, and can then give you feedback as to if your tests are passing or failing. This means more time developing, less time switching windows to run rake test!

I thought I would post a note about how to correctly install autotest, as some of the other documentation is out of date.

sudo gem uninstall ZenTest
sudo gem install ZenTest
sudo gem install autotest-rails

Something that is missing in a lot of other online documentation is the fact that you have to install the autotest-rails gem as well, if you don’t do this, you will get an error any time you try to run autotest:

Autotest style autotest/rails doesn't seem to exist. Aborting.

Another note, if you want to get desktop notifications working, this page has details of how to achieve that using Mac OSX, KDE, Gnome, etc.

Categories: Productivity, Rails, Testing

Tags: , Leave a comment

Like This Post?

Subscribe for more...
Feed

http://www.mendable.com / Installing AutoTest