diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2008-08-13 04:20:23 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2008-08-13 04:20:23 +0000 |
commit | 910988133d4a0e49f70cf3219fa8bb864099852c (patch) | |
tree | c3ca8f4dd1b7346e037baa7e968b06fe17421a58 /lib/tasks | |
parent | fab5c1fdef5dbe4a64e3975855620d6bea7024b9 (diff) | |
download | redmine-910988133d4a0e49f70cf3219fa8bb864099852c.tar.gz redmine-910988133d4a0e49f70cf3219fa8bb864099852c.zip |
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
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/testing.rake | 6 |
1 files 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" |