From 0947ab6c299c78d969305c5443b5cdac8d4c41e3 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 1 Apr 2021 18:59:46 -0400 Subject: [PATCH] Use simplecov-cobertura --- .github/codecov.yml | 2 +- Library/Homebrew/Gemfile | 1 + Library/Homebrew/test/spec_helper.rb | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 87a62dadcc..20c1e42d0a 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,5 +1,5 @@ fixes: - - "/home/linuxbrew/.linuxbrew/Homebrew/::" + - "::Library/Homebrew/" coverage: round: nearest status: diff --git a/Library/Homebrew/Gemfile b/Library/Homebrew/Gemfile index 8dfd6cb0af..8542196c95 100644 --- a/Library/Homebrew/Gemfile +++ b/Library/Homebrew/Gemfile @@ -18,6 +18,7 @@ gem "rspec-wait", require: false gem "rubocop", require: false gem "rubocop-ast", require: false gem "simplecov", require: false +gem 'simplecov-cobertura', require: false gem "sorbet", require: false gem "sorbet-runtime", require: false gem "tapioca", require: false diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index bc9653df54..27e43475e8 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -3,9 +3,12 @@ if ENV["HOMEBREW_TESTS_COVERAGE"] require "simplecov" - require "simplecov_json_formatter" + require 'simplecov-cobertura' - formatters = [SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::JSONFormatter] + formatters = [ + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::CoberturaFormater, + ] SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(formatters) if RUBY_PLATFORM[/darwin/] && ENV["TEST_ENV_NUMBER"]