From 4ad5182bb2cdacecdced9f97231e69ae44285097 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 27 Nov 2011 22:42:53 +0000 Subject: [PATCH] Exclude gems from test coverage. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7963 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/testing.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- 2.39.5