Skip calculating coverage, if SKIP_COVERAGE is defined in ENV

This commit is contained in:
Alexander Meindl 2017-09-30 06:31:45 +02:00
parent b8ca434045
commit 770cd3aa87

View File

@ -1,3 +1,4 @@
unless ENV['SKIP_COVERAGE']
require 'simplecov' require 'simplecov'
require 'simplecov-rcov' require 'simplecov-rcov'
@ -8,6 +9,7 @@ SimpleCov.start :rails do
add_filter 'init.rb' add_filter 'init.rb'
root File.expand_path(File.dirname(__FILE__) + '/..') root File.expand_path(File.dirname(__FILE__) + '/..')
end end
end
require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper') require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')