views:

93

answers:

1

I've run into a problem using autotest with a Rails project, that when a test fails (ie, I modified a test file and autotest automatically runs the test), autotest continously tries to run the test (failing each time of course since the file hasn't yet been modified), instead of waiting until the file is saved again. And with growl notification on, this can be extremely annoying while I'm trying to fix the code to get the test to pass. It doesn't happen all the time, but most of the time. Has anyone else run into this and know the solution? Thanks.

+1  A: 

I found the solution. Probably has to do with OSX (running this on Leopard) changing the .DS_Store file in the folder or another temp file. Adding the following to my .autotest did the trick (this also prevents autotest looking at the index folder generated by Ferret).

Autotest.add_hook :initialize do |at|
  %w{.git vendor index .DS_Store ._}.each {|exception| at.add_exception(exception)}
end
insane.dreamer