Use Rake::TestTask#pattern for plugin tests instead of #test_files (#11534)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10778 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
511e46e978
commit
e00b4acf1e
|
@ -97,21 +97,21 @@ namespace :redmine do
|
||||||
Rake::TestTask.new :units => "db:test:prepare" do |t|
|
Rake::TestTask.new :units => "db:test:prepare" do |t|
|
||||||
t.libs << "test"
|
t.libs << "test"
|
||||||
t.verbose = true
|
t.verbose = true
|
||||||
t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
|
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Runs the plugins functional tests.'
|
desc 'Runs the plugins functional tests.'
|
||||||
Rake::TestTask.new :functionals => "db:test:prepare" do |t|
|
Rake::TestTask.new :functionals => "db:test:prepare" do |t|
|
||||||
t.libs << "test"
|
t.libs << "test"
|
||||||
t.verbose = true
|
t.verbose = true
|
||||||
t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
|
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Runs the plugins integration tests.'
|
desc 'Runs the plugins integration tests.'
|
||||||
Rake::TestTask.new :integration => "db:test:prepare" do |t|
|
Rake::TestTask.new :integration => "db:test:prepare" do |t|
|
||||||
t.libs << "test"
|
t.libs << "test"
|
||||||
t.verbose = true
|
t.verbose = true
|
||||||
t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
|
t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue