blob: 9859729406ab73cd59108c7bc7f262a2e8342362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
namespace :test do
namespace :engines do
[:units, :functionals, :integration].each do |type|
desc "Test engine #{type}"
Rails::TestTask.new(type => "test:prepare") do |t|
t.libs << "test"
subdir = type.to_s.singularize
t.pattern = "engines/*/test/#{subdir}/**/*_test.rb"
end
Rake::Task["test:#{type}"].enhance ["test:engines:#{type}"]
Rake::Task["test"].enhance ["test:engines:#{type}"]
end
end
end
|