Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r--spec/simplecov_env.rb10
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']