]> source.dussan.org Git - redmine.git/commitdiff
Run all tests for coverage.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 13:43:31 +0000 (13:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 13:43:31 +0000 (13:43 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3060 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/testing.rake

index 4e944e1d908a8924ff0ccdebab3ce23512506fff..2028bd15af89e9979439286e48351e05b33cd98e 100644 (file)
@@ -5,10 +5,9 @@ namespace :test do
   task :coverage do
     rm_f "coverage"
     rm_f "coverage.data"
-    rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib"
-    system("#{rcov} --no-html test/unit/*_test.rb")
-    system("#{rcov} --no-html test/functional/*_test.rb")
-    system("#{rcov} --html test/integration/*_test.rb")
+    rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html"
+    files = Dir.glob("test/**/*_test.rb").join(" ")
+    system("#{rcov} #{files}")
     system("open coverage/index.html") if PLATFORM['darwin']
   end