From: Jean-Philippe Lang Date: Sun, 27 Nov 2011 22:42:53 +0000 (+0000) Subject: Exclude gems from test coverage. X-Git-Tag: 1.3.0~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ad5182bb2cdacecdced9f97231e69ae44285097;p=redmine.git Exclude gems from test coverage. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7963 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 02c235581..0f1cf4925 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -5,7 +5,7 @@ namespace :test do task :coverage do rm_f "coverage" rm_f "coverage.data" - rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html" + rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/" files = Dir.glob("test/**/*_test.rb").join(" ") system("#{rcov} #{files}") system("open coverage/index.html") if PLATFORM['darwin']