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,12 +1,14 @@
require 'simplecov'
require 'simplecov-rcov'
unless ENV['SKIP_COVERAGE']
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::RcovFormatter]
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::RcovFormatter]
SimpleCov.start :rails do
add_filter 'init.rb'
root File.expand_path(File.dirname(__FILE__) + '/..')
SimpleCov.start :rails do
add_filter 'init.rb'
root File.expand_path(File.dirname(__FILE__) + '/..')
end
end
require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')