Skip to content

Commit

Permalink
Silence the simplecov output message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gravitystorm committed Mar 6, 2019
1 parent d43315f commit 2c21dd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 2c21dd4

Please sign in to comment.