module SimpleCov

def collate(result_filenames, profile = nil, &block)


information about coverage collation
available config options, or checkout the README for more in-depth
Please check out the RDoc for SimpleCov::Configuration to find about

end
add_filter 'test'
SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"], 'rails' do
OR
end
add_filter 'test'
SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"] do
OR
SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"], 'rails' # using rails profile
OR
SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"]
You can optionally specify configuration with a block:
Collate a series of SimpleCov result files into a single SimpleCov output.
def collate(result_filenames, profile = nil, &block)
  raise "There's no reports to be merged" if result_filenames.empty?
  initial_setup(profile, &block)
  results = result_filenames.flat_map do |filename|
    # Re-create each included instance of SimpleCov::Result from the stored run data.
    (JSON.parse(File.read(filename)) || {}).map do |command_name, coverage|
      SimpleCov::Result.from_hash(command_name => coverage)
    end
  end
  # Use the ResultMerger to produce a single, merged result, ready to use.
  @result = SimpleCov::ResultMerger.merge_and_store(*results)
  run_exit_tasks!
end