Rspec/Cucumber Autotest Loop

Autotest would constantly run my tests even though I hadn’t modified anything. Which made it impossible to actually use. Creating the following in a file called .autotest in my application’s root solved the problem for me. This is on Rails 3 RC, RSpec 2 beta 19 and Cucumber 0.8.5.

  • Great tip! Exactly what I had and the solution I needed.

    Thanks!

  • Not that it makes a huge difference, but shouldn’t those last two be:

    at.add_exception(%r{^\./rerun\.txt})
    at.add_exception(%r{^\./Gemfile\.lock})

    (Added a backslash before the dot at the beginning of the file extension.)

    • Yup, totally right. Both will work but yours is the proper way.