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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-30 17:49:17 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-21 13:44:24 +0300
commitcaec732c7629ddd87792b76a67b41ff26611eec1 (patch)
treef516001efd27fc98292d5438f2df81df09e51f5f /features/support
parent93f98fb8cade1376e607a92ed866b2d569f17d4a (diff)
Add simplecov to spinach tests
Diffstat (limited to 'features/support')
-rw-r--r--features/support/env.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index f0a3dd8d2d0..c1cfabd0d6a 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -1,5 +1,13 @@
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
ENV['RAILS_ENV'] = 'test'