From 686cab4545199faac80b1f48bec6414c39b67b5f Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 8 Nov 2012 11:32:27 -0500 Subject: [PATCH] Build all available coverage xml and html, even if some is missing --- rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rakefile b/rakefile index a1e98e9b6b..8bdc859a2e 100644 --- a/rakefile +++ b/rakefile @@ -198,7 +198,7 @@ namespace :coverage do desc "Build the html coverage reports" task :html => :report_dirs do TEST_TASK_DIRS.each do |dir| - sh("coverage html --rcfile=#{dir}/.coveragerc") + sh("coverage html --rcfile=#{dir}/.coveragerc || echo 'Unable to build coverage html for #{dir}'") end end @@ -206,7 +206,7 @@ namespace :coverage do task :xml => :report_dirs do TEST_TASK_DIRS.each do |dir| # Why doesn't the rcfile control the xml output file properly?? - sh("coverage xml -o reports/#{dir}/coverage.xml --rcfile=#{dir}/.coveragerc") + sh("coverage xml -o reports/#{dir}/coverage.xml --rcfile=#{dir}/.coveragerc || echo 'Unable to build coverage xml for #{dir}'") end end