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.


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


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