-
Notifications
You must be signed in to change notification settings - Fork 9
/
.simplecov
23 lines (18 loc) · 884 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
# Because this file gets automatically loaded when the SimpleCov gem is first required (which
# is done as part of doing pretty much anything in the project) only actually start tracking
# code coverage if testing is happening.
if ENV['CUKE_LINTER_TEST_PROCESS'] == 'true'
require 'simplecov-lcov'
SimpleCov.command_name(ENV.fetch('CUKE_LINTER_SIMPLECOV_COMMAND_NAME'))
SimpleCov.coverage_dir(ENV.fetch('CUKE_LINTER_SIMPLECOV_OUTPUT_DIRECTORY'))
SimpleCov::Formatter::LcovFormatter.config do |config|
config.report_with_single_file = true
config.lcov_file_name = 'lcov.info'
end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter])
SimpleCov.start do
root __dir__
add_filter '/testing/'
end
end