]> source.dussan.org Git - redmine.git/commitdiff
Output test coverage report to the console (#35259).
authorGo MAEDA <maeda@farend.jp>
Sun, 25 Jul 2021 07:15:09 +0000 (07:15 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 25 Jul 2021 07:15:09 +0000 (07:15 +0000)
Patch by Dmitry Makurin.

git-svn-id: http://svn.redmine.org/redmine/trunk@21080 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/coverage/html_formatter.rb

index d242a00f06cbcb7c7d2ad4ea461cbe7db80d5cca..03932035c0f315f700122c0728968aa9714bddb7 100644 (file)
@@ -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