summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-21 10:03:41 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-21 12:46:49 +0200
commitbe3ad008aad2745e3a80ca789025005e180c805e (patch)
tree76be3f942d42bee13a304912d11365940025f217
parent47db7fd3e2c6b6ef65f6b7e7e022d769a3bbc2e2 (diff)
downloadgitlab-ce-be3ad008aad2745e3a80ca789025005e180c805e.tar.gz
Improve simplecov config to avoid missing files
-rw-r--r--spec/simplecov_env.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb
index 956476fd065..112ca1b176a 100644
--- a/spec/simplecov_env.rb
+++ b/spec/simplecov_env.rb
@@ -1,7 +1,8 @@
require 'simplecov'
SimpleCov.configure do
- load_profile :rails
+ load_profile 'test_frameworks'
+ track_files '{app,lib}/**/*.rb'
if ENV['CI_BUILD_NAME']
coverage_dir "coverage/#{ENV['CI_BUILD_NAME']}"
@@ -17,7 +18,14 @@ SimpleCov.configure do
end
add_filter '/vendor/ruby/'
+ add_filter 'config/initializers/'
+ add_group 'Controllers', 'app/controllers'
+ add_group 'Models', 'app/models'
+ add_group 'Mailers', 'app/mailers'
+ add_group 'Helpers', 'app/helpers'
+ add_group 'Workers', %w(app/jobs app/workers)
+ add_group 'Libraries', 'lib'
add_group 'Services', 'app/services'
add_group 'Finders', 'app/finders'
add_group 'Uploaders', 'app/uploaders'