vendor/bundle/ruby/1.8/gems/ZenTest-4.6.2/lib/autotest.rb
##
# Repeatedly run failed tests, then all tests, then wait for changes
# and carry on until killed.
Repeatedly run failed tests, then all tests, then wait for changes
and carry on until killed.
Repeatedly run failed tests then all tests then wait for changes and carry on until killed .
def run
    hook :initialize
    hook :post_initialize
    reset
    add_sigint_handler
    self.last_mtime = Time.now if options[:no_full_after_start]
    loop do
      begin 
        get_to_green
        if tainted? and not options[:no_full_after_failed] then
          rerun_all_tests
        else
          hook :all_good
        end
        wait_for_changes
      rescue Interrupt
        break if wants_to_quit
        reset
      end
    end
    hook :quit
  rescue Exception => err
    hook(:died, err) or raise err
  end
def run hook :initialize hook :post_initialize reset add_sigint_handler self . last_mtime = Time . now if options [ :no_full_after_start ] loop do begin get_to_green if tainted? and not options [ :no_full_after_failed ] then rerun_all_tests else hook :all_good end wait_for_changes rescue Interrupt break if wants_to_quit reset end end hook :quit rescue Exception => err hook ( :died , err ) or raise err end
Repeatedly run failed tests, then all tests, then wait for changes
and carry on until killed.
Repeatedly run failed tests then all tests then wait for changes and carry on until killed .
# ^c handler