-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.simplecov
More file actions
36 lines (30 loc) · 1.25 KB
/
.simplecov
File metadata and controls
36 lines (30 loc) · 1.25 KB
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
# frozen_string_literal: true
SimpleCov.start do
enable_coverage :branch
add_filter %r{^/test/}
add_filter '/config/'
add_group "Components", "lib/practical_framework/components"
add_group "Controller code", "lib/practical_framework/controllers"
add_group "Form Builders", "lib/practical_framework/form_builders"
add_group "Forms", "lib/practical_framework/forms"
add_group "Loaders", "lib/practical_framework/loaders"
add_group "Relation Builders", "lib/practical_framework/relation_builders"
add_group "View Helpers", "lib/practical_framework/view_helpers"
add_group "General Library Code", "lib"
add_group "Test Helpers", "app/lib/practical/test/helpers"
add_group "Shared tests", "app/lib/practical/test/shared"
# Exclude specific files that it doesn't make sense to test
add_filter "lib/tasks/practical/coverage.rake"
add_filter "app/lib/practical/test/helpers/setup/simplecov.rb"
command_name "Job #{ENV['CIRCLE_JOB']} #{ENV['CIRCLE_NODE_INDEX']}" if ENV['CIRCLE_NODE_INDEX']
if ENV['CI']
formatter SimpleCov::Formatter::SimpleFormatter
else
formatter SimpleCov::Formatter::MultiFormatter.new(
[
SimpleCov::Formatter::SimpleFormatter,
SimpleCov::Formatter::HTMLFormatter
]
)
end
end