From: Andy Allan Date: Wed, 6 Mar 2019 08:54:05 +0000 (+0100) Subject: Silence the simplecov output message X-Git-Tag: live~2653^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2c21dd490639e210f7dc765b4df4ea66f3f92974?ds=sidebyside Silence the simplecov output message It's very rare for the information in this message to be useful or actionable when running the tests, so it's best to silence the message. --- diff --git a/test/test_helper.rb b/test/test_helper.rb index d44fcd253..e66d782ff 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,15 @@ require "coveralls" Coveralls.wear!("rails") +# Override the simplecov output message, since it is mostly unwanted noise +module SimpleCov + module Formatter + class HTMLFormatter + def output_message(_result); end + end + end +end + # Output both the local simplecov html and the coveralls report SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( [SimpleCov::Formatter::HTMLFormatter,