You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
# -*- ruby -*-
|
|
|
|
require 'autotest/restart'
|
|
require 'autotest/rcov' if ENV['RCOV']
|
|
|
|
Autotest.add_hook :initialize do |at|
|
|
at.testlib = 'minitest/autorun'
|
|
|
|
bench_tests = %w(TestMinitestBenchmark)
|
|
mock_tests = %w(TestMinitestMock TestMinitestStub)
|
|
spec_tests = %w(TestMinitestReporter TestMetaStatic TestMeta
|
|
TestSpecInTestCase)
|
|
unit_tests = %w(TestMinitestGuard TestMinitestRunnable
|
|
TestMinitestRunner TestMinitestTest TestMinitestUnit
|
|
TestMinitestUnitInherited TestMinitestUnitOrder
|
|
TestMinitestUnitRecording TestMinitestUnitTestCase)
|
|
|
|
{
|
|
bench_tests => "test/minitest/test_minitest_benchmark.rb",
|
|
mock_tests => "test/minitest/test_minitest_mock.rb",
|
|
spec_tests => "test/minitest/test_minitest_reporter.rb",
|
|
unit_tests => "test/minitest/test_minitest_unit.rb",
|
|
}.each do |klasses, file|
|
|
klasses.each do |klass|
|
|
at.extra_class_map[klass] = file
|
|
end
|
|
end
|
|
|
|
at.add_exception 'coverage.info'
|
|
at.add_exception 'coverage'
|
|
end
|
|
|
|
# require 'autotest/rcov'
|
|
# Autotest::RCov.command = 'rcov_info'
|
|
|