summaryrefslogtreecommitdiffstats
path: root/lib/tasks/testing.rake
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-23 11:26:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-23 11:26:04 +0000
commitd74f0bfd5c53962e332c2dd4d30dafaa1105b92b (patch)
treef3eaf66d67c3a87fb34340561bf188d364de623c /lib/tasks/testing.rake
parent41bb302594b48152b87c92f196c915f499093bbf (diff)
downloadredmine-d74f0bfd5c53962e332c2dd4d30dafaa1105b92b.tar.gz
redmine-d74f0bfd5c53962e332c2dd4d30dafaa1105b92b.zip
Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r--lib/tasks/testing.rake30
1 files changed, 12 insertions, 18 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index 831f4d316..47364c82c 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -79,34 +79,28 @@ namespace :test do
end
end
- Rake::TestTask.new(:units => "db:test:prepare") do |t|
- t.libs << "test"
- t.verbose = true
- t.warning = false
- t.test_files = FileList['test/unit/repository*_test.rb'] + FileList['test/unit/lib/redmine/scm/**/*_test.rb']
+ 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']
end
Rake::Task['test:scm:units'].comment = "Run the scm unit tests"
- Rake::TestTask.new(:functionals => "db:test:prepare") do |t|
- t.libs << "test"
- t.verbose = true
- t.warning = false
- t.test_files = FileList['test/functional/repositories*_test.rb']
+ task(:functionals => "db:test:prepare") do |t|
+ $: << "test"
+ Minitest.rake_run FileList['test/functional/repositories*_test.rb']
end
Rake::Task['test:scm:functionals'].comment = "Run the scm functional tests"
end
- Rake::TestTask.new(:routing) do |t|
- t.libs << "test"
- t.verbose = true
- t.test_files = FileList['test/integration/routing/*_test.rb'] + FileList['test/integration/api_test/*_routing_test.rb']
+ task(:routing) do |t|
+ $: << "test"
+ Minitest.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"
- Rake::TestTask.new(:ui => "db:test:prepare") do |t|
- t.libs << "test"
- t.verbose = true
- t.test_files = FileList['test/ui/**/*_test_ui.rb']
+ task(:ui => "db:test:prepare") do |t|
+ $: << "test"
+ Minitest.rake_run FileList['test/ui/**/*_test_ui.rb']
end
Rake::Task['test:ui'].comment = "Run the UI tests with Capybara (PhantomJS listening on port 4444 is required)"
end