1
0

.simplecov 602 B

12345678910111213141516171819202122
  1. # frozen_string_literal: true
  2. if ENV['CI']
  3. require 'simplecov-lcov'
  4. SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
  5. SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
  6. else
  7. SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
  8. end
  9. SimpleCov.start 'rails' do
  10. enable_coverage :branch
  11. add_filter 'lib/linter'
  12. add_group 'Libraries', 'lib'
  13. add_group 'Policies', 'app/policies'
  14. add_group 'Presenters', 'app/presenters'
  15. add_group 'Serializers', 'app/serializers'
  16. add_group 'Services', 'app/services'
  17. add_group 'Validators', 'app/validators'
  18. end