Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (15 sloc) 0.392 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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
Something went wrong with that request. Please try again.