|
|
@ -2,9 +2,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
if ENV['DISABLE_SIMPLECOV'] != 'true'
|
|
|
|
if ENV['DISABLE_SIMPLECOV'] != 'true'
|
|
|
|
require 'simplecov'
|
|
|
|
require 'simplecov'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ENV['CI']
|
|
|
|
require 'simplecov-lcov'
|
|
|
|
require 'simplecov-lcov'
|
|
|
|
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
|
|
|
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
|
|
|
|
|
|
|
end
|
|
|
|
SimpleCov.start 'rails' do
|
|
|
|
SimpleCov.start 'rails' do
|
|
|
|
enable_coverage :branch
|
|
|
|
enable_coverage :branch
|
|
|
|
enable_coverage_for_eval
|
|
|
|
enable_coverage_for_eval
|
|
|
|