Rails: Using Autotest with UnitRecord

Posted by jamie Wed, 05 Sep 2007 19:17:00 GMT

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!!

Posted in ,  | Tags , , , ,  | 3 comments

Comments

  1. Avatar Carl Porth said about 8 hours later:

    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).

  2. Avatar Tim said about 1 month later:

    Man you don’t even know how long I’ve waited for this since disabling my own Movable Type widget (that doesn’t work since Haloscan bypasses that code).

  3. Avatar szeryf said 3 months later:

    This is cool, but when some tests fail, I get “Unable to map class UsersControllerTest to a file” message from autotest (where UsersControllerTest is the class containing failing test). Anyone got this? Any idea how to fix it?

(leave url/email »)

   Comment Markup Help Preview comment