debian-mirror-gitlab/scripts/merge-simplecov
2022-06-21 17:19:12 +05:30

11 lines
314 B
Ruby
Executable file

#!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../spec/simplecov_env'
SimpleCovEnv.configure_profile
SimpleCovEnv.configure_formatter
resultset_files = Dir.glob(File.join(SimpleCov.coverage_path, '*', '.resultset.json'))
exit(0) if resultset_files.empty?
SimpleCov.collate(resultset_files)