diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index 012a6275f1..eaab7dffac 100644 --- a/Library/Homebrew/test/.simplecov +++ b/Library/Homebrew/test/.simplecov @@ -23,7 +23,9 @@ if ENV["HOMEBREW_INTEGRATION_TEST"] end end -if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"] +# Don't use Coveralls outside of CI, as it will override SimpleCov's default +# formatter causing the `index.html` not to be written once all tests finish. +if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"] && ENV["CI"] require "coveralls" Coveralls.wear! end