mhenrixon/stub_requests

View on GitHub
.simplecov

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

require "simplecov-json"

SimpleCov.formatters =
  SimpleCov::Formatter::MultiFormatter.new([
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::JSONFormatter,
  ])

SimpleCov.configure do
  command_name "RSpec"
  refuse_coverage_drop
  minimum_coverage_by_file 80
  maximum_coverage_drop 5
  at_exit do
    SimpleCov.result.format!
  end
end

SimpleCov.start do
  add_filter "/spec/"
  add_filter "/bin/"
  add_filter "/gemfiles/"
  add_filter "/lib/stub_requests/core_ext/array/extract_options.rb"
  add_filter "/lib/stub_requests/core_ext/class/attribute.rb"
  add_filter "/lib/stub_requests/core_ext/object/blank.rb"
  add_filter "/lib/stub_requests/core_ext/kernel/singleton_class.rb"
  add_filter "/lib/stub_requests/core_ext/module/redefine_method.rb"
end