]> source.dussan.org Git - redmine.git/commitdiff
Run only unit, functional then integration tests for coverage.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Jun 2012 19:04:24 +0000 (19:04 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Jun 2012 19:04:24 +0000 (19:04 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9824 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/testing.rake

index 513d2be8bd775ff2248037003ae5a59c1bb3e405..474a09092c9d36d7b8e1aa2e443352bd16da4908 100644 (file)
@@ -6,9 +6,8 @@ namespace :test do
     rm_f "coverage"
     rm_f "coverage.data"
     rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/"
-    files = Dir.glob("test/**/*_test.rb").join(" ")
+    files = %w(unit functional integration).map {|dir| Dir.glob("test/#{dir}/**/*_test.rb")}.flatten.join(" ")
     system("#{rcov} #{files}")
-    system("open coverage/index.html") if PLATFORM['darwin']
   end
 
   desc 'Run unit and functional scm tests'