class Autotest

def find_files_to_test(files=find_files)

modified.
the latest mtime of the files modified or nil when nothing was
timestamps, and use this to update the files to test. Returns
Find the files which have been modified, update the recorded
#
def find_files_to_test(files=find_files)
  updated = files.select { |filename, mtime| self.last_mtime < mtime }
  unless updated.empty? or self.last_mtime.to_i == 0 #nothing to update or initial run
    p updated if options[:verbose]
    hook :updated, updated
  end
  updated.map { |f,m| test_files_for(f) }.flatten.uniq.each do |filename|
    self.files_to_test[filename] # creates key with default value
  end
  if updated.empty? then
    nil
  else
    files.values.max
  end
end