LCOV formatter for SimpleCov. Successor of simplecov-lcov.
Output report per file:
require 'simplecov'
require 'simplecov_lcov_formatter'
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start
Output report as single file:
require 'simplecov'
require 'simplecov_lcov_formatter'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start
Other available configuration options for single file report:
SimpleCov::Formatter::LcovFormatter.config do |c|
c.output_directory = 'your/path' # default: "coverage/lcov"
c.lcov_file_name = 'lcov.info' # default: "YOUR_PROJECT_NAME.lcov"
c.single_report_path = 'your/path/lcov.info'
end
TBD