From: Go MAEDA Date: Sun, 25 Jul 2021 07:15:09 +0000 (+0000) Subject: Output test coverage report to the console (#35259). X-Git-Tag: 5.0.0~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=985450347e32e43c2656683eaa79d6c18e3019b3;p=redmine.git Output test coverage report to the console (#35259). Patch by Dmitry Makurin. git-svn-id: http://svn.redmine.org/redmine/trunk@21080 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/coverage/html_formatter.rb b/test/coverage/html_formatter.rb index d242a00f0..03932035c 100644 --- a/test/coverage/html_formatter.rb +++ b/test/coverage/html_formatter.rb @@ -33,6 +33,11 @@ module Redmine file.puts template('source').result(binding).force_encoding('utf-8') end end + 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