Skip to content

Commit

Permalink
Change simplecov configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Apr 1, 2024
1 parent 072763b commit 8ebb5fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8ebb5fa

Please sign in to comment.