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
Offline
I just want to mention that to get the env variable to work, I added it in My Computer>Properties and then had to restart my computer.
http://groups.google.com/group/rubyonra … nvironment
Offline
Actually, you also need diff.exe in your path.
See my rant and tutorial here: http://rookieonrails.blogspot.com/2007/ … ndows.html
Offline
I needed to delete --colour in the spec.opts to make it actually work.
Offline
I was getting the following error after following this:
C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:377:in `report_activate_error': RubyGem version error: hoe(1.3.0 not >= 1.4.0) (Gem::LoadError)
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:309:in `activate'
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:335:in `activate'
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:334:in `each'
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:334:in `activate'
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options'
from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem'
from C:/Program Files/ruby/bin/autotest:18
Turns out I had to run a "gem update --include-dependencies" before this would work for me.
Offline