What we're listening to:
Jared

The Album Leaf:
Into The Blue Again
Jeff

Paper Route:
Absence

Had issue today with autospec never stopping, and found this article, but I did have the autotest-rails gem installed.  Thanks to Mario Aquino’s article here, I learned that you can pass -v to autospec/autotest and it will print out what triggered it to run.  My culprit was rerun.txt, and then I found buried in the Cucumber documentation:

If you find that autotest runs your features continuously, your features may be changing a file which autotest is monitoring as they run. Use a setting like this to ignore such files. You’ll likely need to set autotest to ignore “rerun.txt” as well.

So, to your project’s .autotest or at ~/.autotest, add something like this:

Autotest.add_hook :initialize do |at|
%w{.svn .hg .git vendor rerun.txt}.each {|exception| at.add_exception(exception)}
end

At least, that’s what my ~/.autotest has, and after adding rerun.txt in there, everything is good.

Hopefully this will help someone else googling for the same thing I was with no luck.

  • Roberto

    Thanks! That was really usefull.

  • Roberto

    Thanks! That was really usefull.

  • Niklas

    thx, that helped actually

  • Niklas

    thx, that helped actually

  • http://cardarella.blogspot.com/ Brian Cardarella

    That was exactly what I was looking for. Thanks!

  • http://cardarella.blogspot.com Brian Cardarella

    That was exactly what I was looking for. Thanks!

  • http://tinyurl.com/davidakachaos davidakachaos

    Thanks! Saved my day! :D
    Certainly the little thingy about -v given to autotest, very useful! Thanks again!

  • http://tinyurl.com/davidakachaos davidakachaos

    Thanks! Saved my day! :D
    Certainly the little thingy about -v given to autotest, very useful! Thanks again!

  • Anonymous

    In my case the Solr index was triggering the loop.
    It helped a lot, thanks!

  • Anonymous

    Thank you much, exactly what I needed.

  • http://pulse.yahoo.com/_77GX5HYJQXYP7GGDTKIOH72T6Q Zhang

    When the city of Exhaust System was incorporated in 1833, it was part of Monroe County instead of the state of Control Arm. For the time that Toledo was part of Brake Disc, it surpassed Monroe in terms of Baby Safety Seat and population. In 2005, it remained the leader in these two segments in the domestic Release Bearing, with a 60% share of the wheel market and a 71% share of the chassis Wiring Harness.

  • http://www.paulsmithsale.uk.com/ paul smith uk

    abc123