Skip calculating coverage, if SKIP_COVERAGE is defined in ENV
This commit is contained in:
parent
b8ca434045
commit
770cd3aa87
@ -1,12 +1,14 @@
|
|||||||
require 'simplecov'
|
unless ENV['SKIP_COVERAGE']
|
||||||
require 'simplecov-rcov'
|
require 'simplecov'
|
||||||
|
require 'simplecov-rcov'
|
||||||
|
|
||||||
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter,
|
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter,
|
||||||
SimpleCov::Formatter::RcovFormatter]
|
SimpleCov::Formatter::RcovFormatter]
|
||||||
|
|
||||||
SimpleCov.start :rails do
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user