simplecov-lcov

Custom SimpleCov formatter to generate a lcov style coverage.

Usage

Output report per file.

require 'simplecov'
  require 'simplecov-lcov'
  SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
  SimpleCov.start

Output report as single file.

require 'simplecov'
  require 'simplecov-lcov'
  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

Contributing to simplecov-lcov

Copyright © 2014 fortissimo1997. See LICENSE.txt for