Project

General

Profile

Defect #27871 ยป patch.diff

Fixes to run plugins test. - Tatsuya Saito, 2017-12-31 03:13

View differences:

lib/tasks/redmine.rake (working copy)
162 162
      desc 'Runs the plugins unit tests.'
163 163
      task :units => "db:test:prepare" do |t|
164 164
        $: << "test"
165
        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
165
        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
166 166
      end
167 167

  
168 168
      desc 'Runs the plugins functional tests.'
169 169
      task :functionals => "db:test:prepare" do |t|
170 170
        $: << "test"
171
        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
171
        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
172 172
      end
173 173

  
174 174
      desc 'Runs the plugins integration tests.'
175 175
      task :integration => "db:test:prepare" do |t|
176 176
        $: << "test"
177
        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
177
        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
178 178
      end
179 179

  
180 180
      desc 'Runs the plugins ui tests.'
181 181
      task :ui => "db:test:prepare" do |t|
182 182
        $: << "test"
183
        Minitest.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"]
183
        Rails::TestUnit::Runner.rake_run ["plugins/#{ENV['NAME'] || '*'}/test/ui/**/*_test.rb"]
184 184
      end
185 185
    end
186 186
  end
lib/tasks/testing.rake (working copy)
81 81

  
82 82
    task(:units => "db:test:prepare") do |t|
83 83
      $: << "test"
84
      Minitest.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
84
      Rails::TestUnit::Runner.rake_run FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
85 85
    end
86 86
    Rake::Task['test:scm:units'].comment = "Run the scm unit tests"
87 87

  
88 88
    task(:functionals => "db:test:prepare") do |t|
89 89
      $: << "test"
90
      Minitest.rake_run FileList['test/functional/repositories*_test.rb']
90
      Rails::TestUnit::Runner.rake_run FileList['test/functional/repositories*_test.rb']
91 91
    end
92 92
    Rake::Task['test:scm:functionals'].comment = "Run the scm functional tests"
93 93
  end
94 94

  
95 95
  task(:routing) do |t|
96 96
    $: << "test"
97
    Minitest.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
97
    Rails::TestUnit::Runner.rake_run FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
98 98
  end
99 99
  Rake::Task['test:routing'].comment = "Run the routing tests"
100 100
end
    (1-1/1)