20 lines
419 B
Ruby
20 lines
419 B
Ruby
# frozen_string_literal: true
|
|
|
|
if ENV['GITHUB_ACTION']
|
|
require 'simplecov-lcov'
|
|
|
|
SimpleCov::Formatter::LcovFormatter.config do |c|
|
|
c.single_report_path = 'coverage/lcov.info'
|
|
c.report_with_single_file = true
|
|
end
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
|
end
|
|
|
|
SimpleCov.start do
|
|
enable_coverage :branch # Only supported for Ruby >= 2.5
|
|
|
|
add_filter '/spec/'
|
|
add_filter 'helper'
|
|
end
|