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
This commit is contained in:
Eric Davis 2008-08-13 04:20:23 +00:00
parent fab5c1fdef
commit 910988133d
1 changed files with 4 additions and 2 deletions

View File

@ -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"