Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 679 Bytes
# -*- ruby -*-
Autotest.add_hook :initialize do |at|
at.clear_mappings # Do not remove this line
# Put your additional test files here
extra_mappings_pfx = "test/"
extra_mappings = {
"libxml4r.rb" => [
"test_xml_readers.rb",
"test_xml_modifiers.rb",
"test_xml_outputters.rb"]
}
# Do not edit below these lines
at.add_mapping /^lib\/.*\.rb$/ do |f, _|
m=f.gsub /.*\//, "" # Strip leading path from #{f}
a=extra_mappings["#{m}"]
a.nil? ? a=[] : a=a.map {|e| extra_mappings_pfx+e}
# at.files_matching(/test\/test_#{m}$/) + a
["test/test_#{m}"] + a
end
at.add_mapping /^test\/test.*\.rb$/ do |f, _|
at.files_matching(/#{f}/)
end
end