diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-30 17:49:17 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-21 13:44:24 +0300 |
commit | caec732c7629ddd87792b76a67b41ff26611eec1 (patch) | |
tree | f516001efd27fc98292d5438f2df81df09e51f5f /features | |
parent | 93f98fb8cade1376e607a92ed866b2d569f17d4a (diff) |
Add simplecov to spinach tests
Diffstat (limited to 'features')
-rw-r--r-- | features/support/env.rb | 8 |
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' |