]> source.dussan.org Git - redmine.git/commitdiff
Replace Minitest.rake_run with Rails::TestUnit::Runner.rake_run for compatibility...
authorGo MAEDA <maeda@farend.jp>
Mon, 1 Jan 2018 10:28:56 +0000 (10:28 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 1 Jan 2018 10:28:56 +0000 (10:28 +0000)
Patch by Tatsuya Saito.

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

lib/tasks/redmine.rake
lib/tasks/testing.rake

index 30d5c4c64e313f374111520a39ac7c05b6ef7c63..f262001143433e10b63c95e998e70ca2cfeac45e 100644 (file)
@@ -162,25 +162,25 @@ DESC
       desc 'Runs the plugins unit tests.'
       task :units => "db:test:prepare" do |t|
         $: << "test"
-        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
+        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
       end
 
       desc 'Runs the plugins functional tests.'
       task :functionals => "db:test:prepare" do |t|
         $: << "test"
-        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
+        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
       end
 
       desc 'Runs the plugins integration tests.'
       task :integration => "db:test:prepare" do |t|
         $: << "test"
-        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
+        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
       end
 
       desc 'Runs the plugins ui tests.'
       task :ui => "db:test:prepare" do |t|
         $: << "test"
-        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"]
+        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"]
       end
     end
   end
index fbb25cfd16a35e49e3aa5f42c709091ebb07db7c..33bedd4e028b56ded08571991b7447b9870b16c7 100644 (file)
@@ -81,20 +81,20 @@ namespace :test do
 
     task(:units => "db:test:prepare") do |t|
       $: << "test"
-      Minitest.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
+      Rails::TestUnit::Runner.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
     end
     Rake::Task['test:scm:units'].comment = "Run the scm unit tests"
 
     task(:functionals => "db:test:prepare") do |t|
       $: << "test"
-      Minitest.rake_run FileList['test/functional/repositories*_test.rb']
+      Rails::TestUnit::Runner.rake_run FileList['test/functional/repositories*_test.rb']
     end
     Rake::Task['test:scm:functionals'].comment = "Run the scm functional tests"
   end
 
   task(:routing) do |t|
     $: << "test"
-    Minitest.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
+    Rails::TestUnit::Runner.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
   end
   Rake::Task['test:routing'].comment = "Run the routing tests"
 end