diff --git a/lib/simplecov-html.rb b/lib/simplecov-html.rb index eae44fa..2be8742 100644 --- a/lib/simplecov-html.rb +++ b/lib/simplecov-html.rb @@ -38,9 +38,10 @@ def format(result) end def output_message(result) - str = "Coverage report generated for #{result.command_name} to #{output_path}. #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered." - str += " #{result.covered_branches} / #{result.total_branches} branches (#{result.coverage_statistics[:branch].percent.round(2)}%) covered." if branchable_result? - str + output = "Coverage report generated for #{result.command_name} to #{output_path}." + output += "\nLine Coverage: #{result.covered_percent.round(2)}% (#{result.covered_lines} / #{result.total_lines})" + output += "\nBranch Coverage: #{result.coverage_statistics[:branch].percent.round(2)}% (#{result.covered_branches} / #{result.total_branches})" if branchable_result? + output end def branchable_result?