Skip to content

Commit

Permalink
Merge branch 'master' of github.com:colszowka/simplecov-html
Browse files Browse the repository at this point in the history
  • Loading branch information
colszowka committed Sep 17, 2011
2 parents 9ff1602 + 1121a07 commit a15909b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/simplecov-html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def format(result)
File.open(File.join(output_path, "index.html"), "w+") do |file|
file.puts template('layout').result(binding)
end
puts "Coverage report generated for #{result.command_name} to #{output_path}. #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered."
puts output_message(result)
end

def output_message(result)
"Coverage report generated for #{result.command_name} to #{output_path}. #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered."
end

private
Expand Down

0 comments on commit a15909b

Please sign in to comment.