From: Eric Davis Date: Wed, 13 Aug 2008 04:20:23 +0000 (+0000) Subject: Extracted rcov options and removed gems from the rcov report. X-Git-Tag: 0.8.0-RC1~292 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=910988133d4a0e49f70cf3219fa8bb864099852c;p=redmine.git 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 --- 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"