From 4ad5182bb2cdacecdced9f97231e69ae44285097 2011-11-27 22:42:53 From: Jean-Philippe Lang Date: 2011-11-27 22:42:53 Subject: [PATCH] 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 02c2355..0f1cf49 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']