require "autotest/restart" require 'rbconfig' Autotest.add_hook :initialize do |at| at.find_directories = ARGV unless ARGV.empty? at.testlib = "minitest/autorun" end Autotest.add_hook :run_command do |at| at.unit_diff = 'cat' system "ruby -S rake compile" end Autotest.add_hook :ran_command do |at| File.open('/tmp/autotest.txt', 'wb') { |f| f.write(at.results.join) } end