Debian Codegraph @

.simplecov

raw
1 # frozen_string_literal: true
2
3 require 'simplecov-lcov'
4
5 SimpleCov::Formatter::LcovFormatter.config do |c|
6 c.output_directory = 'coverage'
7 c.lcov_file_name = 'lcov.info'
8 c.report_with_single_file = true
9 c.single_report_path = 'coverage/lcov.info'
10 end
11
12 SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
13 [
14 SimpleCov::Formatter::HTMLFormatter,
15 SimpleCov::Formatter::LcovFormatter
16 ]
17 )
18
19 SimpleCov.start do
20 enable_coverage :branch
21 add_filter ['/test/', '/samples/']
22 end