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.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb
index 617a45ae449..a5efc8348a4 100644
--- a/spec/simplecov_env.rb
+++ b/spec/simplecov_env.rb
@@ -2,6 +2,7 @@
require 'simplecov'
require 'simplecov-cobertura'
+require 'simplecov-lcov'
require_relative '../lib/gitlab/utils'
module SimpleCovEnv
@@ -18,10 +19,13 @@ module SimpleCovEnv
end
def configure_formatter
+ SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::SimpleFormatter,
SimpleCov::Formatter::HTMLFormatter,
- SimpleCov::Formatter::CoberturaFormatter
+ SimpleCov::Formatter::CoberturaFormatter,
+ SimpleCov::Formatter::LcovFormatter
])
end
@@ -49,11 +53,9 @@ module SimpleCovEnv
track_files '{app,config/initializers,config/initializers_before_autoloader,db/post_migrate,haml_lint,lib,rubocop,tooling}/**/*.rb'
add_filter '/vendor/ruby/'
- add_filter '/app/controllers/sherlock/'
+ add_filter '/app/controllers/sherlock/' # Profiling tool used only in development
add_filter '/bin/'
- add_filter 'db/fixtures/' # Matches EE files as well
- add_filter '/lib/gitlab/sidekiq_middleware/'
- add_filter '/lib/system_check/'
+ add_filter 'db/fixtures/development/' # Matches EE files as well
add_group 'Channels', 'app/channels' # Matches EE files as well
add_group 'Controllers', 'app/controllers' # Matches EE files as well