From 910988133d4a0e49f70cf3219fa8bb864099852c Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 13 Aug 2008 04:20:23 +0000 Subject: [PATCH] Extracted rcov options and removed gems from the rcov report. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1745 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/testing.rake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 3821ca5df..0e154af4e 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -4,13 +4,15 @@ begin require 'rcov/rcovtask' + rcov_options = "--rails --aggregate test/coverage.data --exclude '/gems/'" + namespace :test do desc "Aggregate code coverage for all tests" Rcov::RcovTask.new('coverage') do |t| t.libs << 'test' t.test_files = FileList['test/{unit,integration,functional}/*_test.rb'] t.verbose = true - t.rcov_opts << '--rails --aggregate test/coverage.data' + t.rcov_opts << rcov_options end namespace :coverage do @@ -26,7 +28,7 @@ begin t.test_files = FileList['test/{unit,integration,functional}/*_test.rb'] t.output_dir = "test/coverage" t.verbose = true - t.rcov_opts << '--rails --aggregate test/coverage.data' + t.rcov_opts << rcov_options end desc "Open the HTML coverage report"