Search code examples
ruby-on-railsrspecautotest

How can I have autospec/test not run the full test suite after everything goes green?


Same question as waloeiii in twitter:

How can I have autospec/test not run the full test suite after everything goes green? The next test I write will be red!

I'd rather run the full test suite manually.

By the way, I tried adding a failing spec:

it "should flunk" do
  flunk
end

but autospec seems to ignore it when it feels like it.


Solution

  • Bit late but I was looking for this as well so thought I'd post my solution:

    Add the following to ~/.autotest:

    class Autotest
      def rerun_all_tests
      end
    end