module SimpleCov::ResultMerger
def merge_results(*results)
coverage data and the command_name for the result consisting of a join
Merge two or more SimpleCov::Results into a new one with merged
def merge_results(*results) parsed_results = JSON.parse(JSON.dump(results.map(&:original_result))) combined_result = SimpleCov::Combine::ResultsCombiner.combine(*parsed_results) result = SimpleCov::Result.new(combined_result) # Specify the command name result.command_name = results.map(&:command_name).sort.join(", ") result end