summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tasks/testing.rake6
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"