diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 18:08:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-23 18:08:41 +0300 |
commit | 5eeb39104356356bec81abe19479bca591e6f299 (patch) | |
tree | 7534ccf94fb8100ce39b78278d275b2061773f95 /spec/simplecov_env.rb | |
parent | b7e512c8970dcce6feabc096885c7a1ea91e4694 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r-- | spec/simplecov_env.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb index d618c83d78e..efd0c07b1b2 100644 --- a/spec/simplecov_env.rb +++ b/spec/simplecov_env.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require 'simplecov' +require 'simplecov-cobertura' require 'active_support/core_ext/numeric/time' require_relative '../lib/gitlab/utils' @@ -12,10 +13,19 @@ module SimpleCovEnv configure_profile configure_job + configure_formatter SimpleCov.start end + def configure_formatter + SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([ + SimpleCov::Formatter::SimpleFormatter, + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::CoberturaFormatter + ]) + end + def configure_job SimpleCov.configure do if ENV['CI_JOB_NAME'] |