summaryrefslogtreecommitdiff
path: root/features/support
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-30 18:54:03 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-21 12:44:24 +0200
commit8cc7a2dd6f201019d6848aade74d938db356cc39 (patch)
tree1e91ae5415fdef0086a8f577bea705b46e11aac5 /features/support
parent2d3978842cb1742d1c974fa57c29b6508a365c24 (diff)
downloadgitlab-ce-8cc7a2dd6f201019d6848aade74d938db356cc39.tar.gz
Store all simplecov configuration in one file
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index c1cfabd0d6a..1c39367ad42 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,14 +1,4 @@
-if ENV['SIMPLECOV']
- require 'simplecov'
-
- SimpleCov.start :rails do
- if ENV['CI_BUILD_NAME']
- coverage_dir "coverage/#{ENV['CI_BUILD_NAME']}"
- command_name ENV['CI_BUILD_NAME']
- merge_timeout 7200
- end
- end
-end
+require_relative Rails.root.join('spec', 'simplecov_env')
ENV['RAILS_ENV'] = 'test'
require './config/environment'