demarches-normaliennes/.simplecov

31 lines
895 B
Text
Raw Permalink Normal View History

2024-04-22 15:02:35 +02:00
# frozen_string_literal: true
SimpleCov.start "rails" do
enable_coverage :branch
command_name "RSpec process #{Process.pid}"
2024-04-22 15:00:40 +02:00
if ENV["CI"] # codecov compatibility
require 'simplecov-cobertura'
formatter SimpleCov::Formatter::CoberturaFormatter
else
formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::SimpleFormatter,
SimpleCov::Formatter::HTMLFormatter
])
end
2024-04-22 15:02:35 +02:00
add_filter "/channels/" # not used
groups.delete("Channels")
add_filter "/lib/tasks/deployment/"
2024-04-22 15:02:35 +02:00
add_group "Components", "app/components"
add_group "API", ["app/graphql", "app/serializers"]
add_group "Manager", ["app/dashboards", "app/fields", "app/controllers/manager"]
2024-04-22 15:02:35 +02:00
add_group "Models", ["app/models", "app/validators"]
add_group "Policies", "app/policies"
add_group "Services", "app/services"
add_group "Tasks", ["app/tasks", "lib/tasks"]
end