]> source.dussan.org Git - redmine.git/commitdiff
Fixed rake redmine:plugins:test:* not running some tests in subdirectories (#11533)
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sun, 29 Jul 2012 18:27:13 +0000 (18:27 +0000)
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Sun, 29 Jul 2012 18:27:13 +0000 (18:27 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10135 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/redmine.rake

index d590066377f606d76206cf6ae3ab91c4e27afd36..3f69d36f55204ff5b0aa71ead1bbb264c2fb1d8a 100644 (file)
@@ -97,21 +97,21 @@ namespace :redmine do
       Rake::TestTask.new :units => "db:test:prepare" do |t|
         t.libs << "test"
         t.verbose = true
-        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/unit/*_test.rb"]
+        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/unit/**/*_test.rb"]
       end
 
       desc 'Runs the plugins functional tests.'
       Rake::TestTask.new :functionals => "db:test:prepare" do |t|
         t.libs << "test"
         t.verbose = true
-        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/functional/*_test.rb"]
+        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/functional/**/*_test.rb"]
       end
 
       desc 'Runs the plugins integration tests.'
       Rake::TestTask.new :integration => "db:test:prepare" do |t|
         t.libs << "test"
         t.verbose = true
-        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/integration/*_test.rb"]
+        t.test_files = FileList["plugins/#{ENV['NAME'] || '*'}/test/integration/**/*_test.rb"]
       end
     end
   end