From c3ba302f0de630d9872efb3eeb1b9437f56b5448 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 2 Dec 2014 19:59:38 +0000 Subject: Use simplecov for code coverage, rcov does not support ruby>=1.9. git-svn-id: http://svn.redmine.org/redmine/trunk@13691 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/testing.rake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/tasks') diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 274b868cc..e267d0820 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -1,13 +1,9 @@ -### From http://svn.geekdaily.org/public/rails/plugins/generally_useful/tasks/coverage_via_rcov.rake - namespace :test do desc 'Measures test coverage' task :coverage do rm_f "coverage" - rm_f "coverage.data" - rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/" - files = %w(unit functional integration).map {|dir| Dir.glob("test/#{dir}/**/*_test.rb")}.flatten.join(" ") - system("#{rcov} #{files}") + ENV["COVERAGE"] = "1" + Rake::Task["test"].invoke end desc 'Run unit and functional scm tests' -- cgit v1.2.3