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