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:
parent
4a1683e607
commit
cbe6b4a374
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user