-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55b1aa5
commit eeac7ac
Showing
4 changed files
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
SimpleCov.start do | ||
root ENV.fetch("ENGINE_ROOT", nil) | ||
if ENV["SIMPLECOV"] | ||
SimpleCov.start do | ||
# We ignore some of the files because they are never tested | ||
add_filter "/config/" | ||
add_filter "/db/" | ||
add_filter "lib/decidim/decidim_awesome/version.rb" | ||
add_filter "/spec" | ||
end | ||
|
||
add_filter "lib/decidim/decidim_awesome/version.rb" | ||
add_filter "/spec" | ||
end | ||
|
||
SimpleCov.command_name ENV.fetch("COMMAND_NAME", nil) || File.basename(Dir.pwd) | ||
SimpleCov.merge_timeout 1800 | ||
|
||
SimpleCov.merge_timeout 1800 | ||
if ENV["CI"] | ||
require "simplecov-cobertura" | ||
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters