forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.simplecov
More file actions
26 lines (21 loc) · 762 Bytes
/
.simplecov
File metadata and controls
26 lines (21 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true
SimpleCov.start do
# `ENGINE_ROOT` holds the name of the engine we're testing.
# This brings us to the main Decidim folder.
root File.expand_path("..", ENV["ENGINE_ROOT"])
# We make sure we track all Ruby files, to avoid skipping unrequired files
# We need to include the `../` section, otherwise it only tracks files from the
# `ENGINE_ROOT` folder for some reason.
track_files "../**/*.rb"
# We ignore some of the files because they are never tested
add_filter "/config/"
add_filter "/db/"
add_filter "/vendor/"
add_filter "/spec/"
add_filter "/test/"
end
SimpleCov.merge_timeout 1800
if ENV["CI"]
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end