From 8ebb5fa038dade04a747bfc7b686ee15b52cca99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Bol=C3=ADvar?= Date: Mon, 1 Apr 2024 10:03:56 +0200 Subject: [PATCH] Change simplecov configuration --- .simplecov | 13 +++++++++++++ spec/spec_helper.rb | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .simplecov diff --git a/.simplecov b/.simplecov new file mode 100644 index 0000000..9f28e5e --- /dev/null +++ b/.simplecov @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +SimpleCov.start do + root ENV.fetch("ENGINE_ROOT", nil) + + add_filter "lib/decidim/navigation_maps/version.rb" + add_filter "lib/decidim/navigation_maps/test" + add_filter "/spec" +end + +SimpleCov.command_name ENV.fetch("COMMAND_NAME", nil) || File.basename(Dir.pwd) + +SimpleCov.merge_timeout 1800 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e74c150..c45211f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,9 +1,8 @@ # frozen_string_literal: true require "decidim/dev" - require "simplecov" -SimpleCov.start "rails" + if ENV["CODECOV"] require "codecov" SimpleCov.formatter = SimpleCov::Formatter::Codecov