Alex Rivera | Logout

How do I troubleshoot autotest infinite loop problems?

Asked 2010-07-06T21:01:16.640
11

I'm using cucumber, rails3, rspec2 and autotest. I'm trying to figure out why my features are infinitely looping. I suspect it some file being changed during the tests but I'm not sure which one. I've added some exceptions to my .autotest with no dice.

Are there any steps I can take to troubleshoot this problem?

It'd be cool if I could see what files are triggering a rerun or, at run time, what files are being watched/not watched.

here's my .autotest contents

require 'autotest/growl'

Autotest::Growl::clear_terminal = false

# Skip some paths
Autotest.add_hook :initialize do |autotest|
    %w{.git .DS_store db log tmp rerun.txt}.each { |e| autotest.add_exception(e) }
end
Edit
Report

1 Answer

5

Just wanted to say thanks. Turns out, for me, it was the log directory. My .autotest file looks like this.

# .autotest
Autotest.add_hook :initialize do |at|
  # Log directory is causing cucumber to run infinitely.
  at.add_exception(%r{^\./log})
end

For reference, see "Customizing Autotest Behavior" in http://github.com/aslakhellesoy/cucumber/wiki/Autotest-Integration, which talks about the infinite loop problem.

answered 2010-12-09T22:16:38.287

Your Answer