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”:http://blog.jayfields.com/2007/09/rails-how-we-test.html using “UnitRecord”:http://unit-test-ar.rubyforge.org/.
You can grab our plugin to enable “UnitRecord”:http://unit-test-ar.rubyforge.org/ when using “Autotest”:http://rubyforge.org/projects/zentest below:
“http://svn.soniciq.com/public/rails/plugins/iq_autotest”: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!!
2 comments ↓
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).
I know this post is very old, so it isn’t surprising that the plugin isn’t available anymore. Is the code still lying around? I would be very interested.
Leave a Comment