Topic: Using Autotest with Rails on Windows XP machines
This is a short tutorial on how to use autotest on a Windows XP device. The great thing about autotest is that it updates your test results automatically each time you make changes to your models, controllers or test files. Here's how to do it.
First, install ZenTest
gem install ZenTest
Then go to the directory of your rails application. For example:
cd c:\rails\myrailsapp
Next, before you start autotest, you should always set the env variable. At least on Windows. You do it like so
set HOME = C:\Documents and Settings\username
Note that username is your name on your machine. It could be daibatzu or john, lisa, mark whatever. So for john it would be "set HOME = C:\Documents and Settings\john". If you are in doubt, just click on the start button and you should see the name of the current user at the very top of the start menu next to your avatar when logged in.
After this, assuming you are still in the directory of your rails app, simply type the command.
autotest --rails
And voila, autotesting is enabled. This is actually a very cool tool as you will soon find out. Simply begin writing tests for your rails applications and see what happens.