-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.simplecov
More file actions
33 lines (28 loc) · 1013 Bytes
/
.simplecov
File metadata and controls
33 lines (28 loc) · 1013 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
27
28
29
30
31
32
33
# frozen_string_literal: true
# https://github.com/simplecov-ruby/simplecov#getting-started
require 'simplecov_json_formatter'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov::Formatter::LcovFormatter.config.single_report_path = 'lcov.info'
SimpleCov.formatters =
SimpleCov::Formatter::MultiFormatter.new(
[SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::JSONFormatter, SimpleCov::Formatter::LcovFormatter]
)
SimpleCov.start :rails do
add_filter '/test/'
add_filter '/config/'
add_filter '/coverage/'
add_filter '/data/'
add_filter '/db/'
add_filter '/doc/'
add_filter '/log/'
add_filter '/public/'
add_filter '/script/'
add_filter '/features/'
add_filter '/vendor/'
add_filter '/tmp/'
enable_coverage :branch
# You can add_filter here to add anything else you don't want to cover
# Mainly here for reference, and wont be running it again
add_filter '/lib/ability_analysis/spec_generator.rb'
end