# -*- ruby -*-

require 'autotest/restart'

Autotest.add_hook :initialize do |at|
  at.add_exception 'coverage'
  at.add_exception 'coverage.info'

  at.libs << ':../../minitest/dev/lib'
  at.testlib = ".minitest"

  %w(TestZenTest).each do |klass|
    at.extra_class_map[klass] = "test/test_zentest.rb"
  end
end

Autotest.add_hook :all_good do |at|
  system "rake rcov_info"
end if ENV['RCOV']

