From: Jean-Philippe Lang Date: Tue, 12 Jun 2012 19:04:24 +0000 (+0000) Subject: Run only unit, functional then integration tests for coverage. X-Git-Tag: 2.1.0~449 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13dced9d769951a3bdffc95dc6ccf638b850241a;p=redmine.git Run only unit, functional then integration tests for coverage. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9824 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 513d2be8b..474a09092 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -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'