rating/spec/support/coverage.rb

19 lines
380 B
Ruby
Raw Normal View History

2022-05-18 01:48:47 +00:00
# frozen_string_literal: true
if ENV.fetch('COVERAGE', 'false') == 'true'
require 'simplecov'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
SimpleCov.minimum_coverage(ENV.fetch('MINIMUM_COVERAGE', 80).to_i)
SimpleCov.start('rails') do
add_filter [
'/lib/generators',
'/lib/rating/version.rb',
'/vendor',
]
end
end