]> source.dussan.org Git - redmine.git/commitdiff
add plugins ui tests rake task (#21361)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 Nov 2015 12:30:57 +0000 (12:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 Nov 2015 12:30:57 +0000 (12:30 +0000)
Patch by Maria Tikhonova.

git-svn-id: http://svn.redmine.org/redmine/trunk@14891 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/redmine.rake

index c0b2b1d9e298db4a01670352f93dd9b1da70f18b..89450c1c29bd3da9fa93f78c9fdf6037d61f0971 100644 (file)
@@ -171,6 +171,13 @@ DESC
         t.verbose = true
         t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"
       end
+
+      desc 'Runs the plugins ui tests.'
+      Rake::TestTask.new :ui => "db:test:prepare" do |t|
+        t.libs << "test"
+        t.verbose = true
+        t.pattern = "plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"
+      end
     end
   end
 end