From 985450347e32e43c2656683eaa79d6c18e3019b3 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 25 Jul 2021 07:15:09 +0000 Subject: [PATCH] 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 --- test/coverage/html_formatter.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5