summaryrefslogtreecommitdiffstats
path: root/test/coverage/html_formatter.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-25 07:15:09 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-25 07:15:09 +0000
commit985450347e32e43c2656683eaa79d6c18e3019b3 (patch)
treeb7ebc0fa3047c3b09cbaff319d9c2f7da82c961c /test/coverage/html_formatter.rb
parent37d3f3faa9a639288e3c056d688d0114e943d70c (diff)
downloadredmine-985450347e32e43c2656683eaa79d6c18e3019b3.tar.gz
redmine-985450347e32e43c2656683eaa79d6c18e3019b3.zip
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
Diffstat (limited to 'test/coverage/html_formatter.rb')
-rw-r--r--test/coverage/html_formatter.rb5
1 files changed, 5 insertions, 0 deletions
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