-
-
Notifications
You must be signed in to change notification settings - Fork 277
/
.simplecov
45 lines (36 loc) · 1.18 KB
/
.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
43
44
45
# 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 "/spec/"
add_filter "/bin/"
add_filter "/gemfiles/"
add_filter "/lib/sidekiq/"
add_filter "/lib/sidekiq_unique_jobs/testing.rb"
add_filter "/myapp/"
add_filter "/lib/sidekiq_unique_jobs/core_ext.rb"
add_group "Locks", "lib/sidekiq_unique_jobs/lock"
add_group "Middelware", "lib/sidekiq_unique_jobs/middleware"
add_group "Redis", "lib/sidekiq_unique_jobs/redis"
add_group "Timeout", "lib/sidekiq_unique_jobs/timeout"
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