Sha256: 07ce346e59713e268c906e92b5005cd0563de700d69b0af3fc2325173cfe6e75
Contents?: true
Size: 856 Bytes
Versions: 25
Compression:
Stored size: 856 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true if ENV['CI'] namespace :coverage do desc 'Collates all result sets generated by the different test runners' task :report do require 'simplecov' require 'fileutils' SimpleCov.coverage_dir('coverage_results') SimpleCov.collate(Dir['*/coverage_*/.resultset.json']) do formatter SimpleCov::Formatter::HTMLFormatter refuse_coverage_drop end Dir['lib/coverage_{[!r][!e][!s][!u][!l][!t][!s]}*'].each { |dir| FileUtils.rm_rf(dir) } end desc 'Removes all coverage_* directories' task :clear do require 'fileutils' Dir['lib/coverage_*'].each { |dir| FileUtils.rm_rf(dir) } end end end
Version data entries
25 entries across 25 versions & 1 rubygems