1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Fixes that @redmine:plugins:test@ should run plugins unit, functional, integration and system tests in one single test session instead of one session for each type of test. This behaviour was changed in Rails 7.1 because @rake test@ and @rails test@ are integrated (#39803, #36320).

git-svn-id: https://svn.redmine.org/redmine/trunk@22524 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2023-12-20 03:19:10 +00:00
parent 4a1683e607
commit cbe6b4a374

View File

@ -169,10 +169,13 @@ DESC
desc 'Runs the plugins tests.'
task :test do
Rake::Task["redmine:plugins:test:units"].invoke
Rake::Task["redmine:plugins:test:functionals"].invoke
Rake::Task["redmine:plugins:test:integration"].invoke
Rake::Task["redmine:plugins:test:system"].invoke
$: << "test"
Rails::TestUnit::Runner.run_from_rake 'test', FileList[
"plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb",
"plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb",
"plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb",
"plugins/#{ENV['NAME'] || '*'}/test/system/**/*_test.rb"
]
end
namespace :test do