From 6efdbaeb05e9f9200d7c95baaf44ffffa4e8dc6a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sun, 27 Sep 2009 18:57:06 -0700 Subject: testing sequence attributes --- .autotest | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to '.autotest') diff --git a/.autotest b/.autotest index ef753ad..687fd0e 100644 --- a/.autotest +++ b/.autotest @@ -2,22 +2,22 @@ require 'autotest/restart' -# Autotest.add_hook :initialize do |at| -# at.extra_files << "../some/external/dependency.rb" -# -# at.libs << ":../some/external" -# -# at.add_exception 'vendor' -# -# at.add_mapping(/dependency.rb/) do |f, _| -# at.files_matching(/test_.*rb$/) -# end -# -# %w(TestA TestB).each do |klass| -# at.extra_class_map[klass] = "test/test_misc.rb" -# end -# end +begin + require 'autotest/fsevent' +rescue LoadError +end -# Autotest.add_hook :run_command do |at| -# system "rake build" -# end +Autotest.add_hook :run_command do |at| + at.unit_diff = 'cat' + if ENV['ONENINE'] + system "rake1.9 compile" + else + system "rake compile" + end +end + +Autotest.add_hook :ran_command do |at| + File.open('/tmp/autotest.txt', 'wb') { |f| + f.write(at.results.join) + } +end -- cgit v1.2.3