##// END OF EJS Templates
Adds redmine:plugins:test rake tasks for running plugins tests....
Jean-Philippe Lang -
r9555:251d62c2bfd2
parent child
Show More
@@ -82,6 +82,36 namespace :redmine do
82 abort "Plugin #{name} was not found."
82 abort "Plugin #{name} was not found."
83 end
83 end
84 end
84 end
85
86 desc 'Runs the plugins tests.'
87 task :test do
88 Rake::Task["redmine:plugins:test:units"].invoke
89 Rake::Task["redmine:plugins:test:functionals"].invoke
90 Rake::Task["redmine:plugins:test:integration"].invoke
91 end
92
93 namespace :test do
94 desc 'Runs the plugins unit tests.'
95 Rake::TestTask.new :units => "db:test:prepare" do |t|
96 t.libs << "test"
97 t.verbose = true
98 t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/unit/*_test.rb"]
99 end
100
101 desc 'Runs the plugins functional tests.'
102 Rake::TestTask.new :functionals => "db:test:prepare" do |t|
103 t.libs << "test"
104 t.verbose = true
105 t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/functional/*_test.rb"]
106 end
107
108 desc 'Runs the plugins integration tests.'
109 Rake::TestTask.new :integration => "db:test:prepare" do |t|
110 t.libs << "test"
111 t.verbose = true
112 t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/integration/*_test.rb"]
113 end
114 end
85 end
115 end
86 end
116 end
87
117
General Comments 0
You need to be logged in to leave comments. Login now