forked from brpoplpush/brpoplpush-redis_script
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.simplecov
42 lines (33 loc) · 959 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
41
42
# frozen_string_literal: true
require "simplecov_json_formatter"
require "simplecov-sublime"
CI_FORMATTERS = [
SimpleCov::Formatter::SimpleFormatter,
SimpleCov::Formatter::JSONFormatter,
].freeze
LOCAL_FORMATTERS = [
SimpleCov::Formatter::JSONFormatter,
SimpleCov::Formatter::SublimeFormatter,
SimpleCov::Formatter::HTMLFormatter,
].freeze
SimpleCov.start do
add_filter "/.github/"
add_filter "/bin/"
add_filter "/coverage/"
add_filter "/doc/"
add_filter "/gemfiles/"
add_filter "/spec/"
add_filter "/vendor/"
add_group "Redis Script", "lib/redis_script"
enable_coverage :branch
primary_coverage :branch
if ENV["CI"]
formatter SimpleCov::Formatter::MultiFormatter.new(CI_FORMATTERS)
else
formatter SimpleCov::Formatter::MultiFormatter.new(LOCAL_FORMATTERS)
refuse_coverage_drop
minimum_coverage line: 90, branch: 80
minimum_coverage_by_file line: 90, branch: 80
end
track_files "**/*.rb"
end