Build all available coverage xml and html, even if some is missing
This commit is contained in:
4
rakefile
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user