-
Notifications
You must be signed in to change notification settings - Fork 44
/
.simplecov
40 lines (30 loc) · 932 Bytes
/
.simplecov
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require "simplecov_json_formatter"
require "simplecov-lcov"
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = "coverage/lcov.info"
end
def start_simplecov
formatters = [
SimpleCov::Formatter::LcovFormatter,
SimpleCov::Formatter::JSONFormatter
]
unless ENV.key?("CI")
require "simplecov-cobertura"
require "simplecov-tailwindcss"
formatters << SimpleCov::Formatter::CoberturaFormatter
formatters << SimpleCov::Formatter::TailwindFormatter
end
SimpleCov.formatters = formatters
SimpleCov.start do
enable_coverage_for_eval if coverage_for_eval_supported?
enable_coverage(:branch)
track_files "**/*.rb"
# add_filter "examples/"
# add_filter "spec/"
add_group "Base", "base"
add_group "Horizon", "horizon"
add_group "SDK", "sdk"
end
end
start_simplecov if ENV.fetch("COVERAGE", "false") == "true"