Rails: Using Autotest with UnitRecord

Myself and a colleague have just managed to waste away a good couple of hours trying to figure out Autotests strange ’style’ mechanism to add the ability to test in the way Jay Fields explains using UnitRecord.

You can grab our plugin to enable UnitRecord when using Autotest below:

http://svn.soniciq.com/public/rails/plugins/iq_autotest

By default, running autotest in the Rails directory will run the unit tests. To run the functional tests, do: AUTOTEST='functional' autotest

I hope this saves some people some time!!

Tags: , , , ,

1 comment so far ↓

#1 Carl Porth on 09.06.07 at 3:49 am

Thanks for putting this together! I know you’ve saved me a ton of time (although I wasted a bit trying to accomplish the same thing).

Leave a Comment