ruby-on-railsrubyrspecautotestzentest

Why does autotest sometimes re-run all specs immediately after a failure?


Sometimes after autotest runs specs and encounters an failure, it will immediately re-run all the specs in the project, which (a) I have no need for and (b) clears the terminal so I can't read the results of the failed spec.

Why is this happening?


Solution

  • This can happen for a number of reasons:

    1. A file was touched that is not in the ignore list or has a mapping.
    2. Autotest could not parse your test output for fail state and assumed that walking back up the failure tree is reasonable.
    3. Your tests sent an interrupt to autotest.