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

Version Path
newrelic_rpm-9.17.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.16.1 lib/tasks/coverage_report.rake
newrelic_rpm-9.16.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.15.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.14.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.13.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.12.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.11.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.10.2 lib/tasks/coverage_report.rake
newrelic_rpm-9.10.1 lib/tasks/coverage_report.rake
newrelic_rpm-9.10.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.9.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.8.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.7.1 lib/tasks/coverage_report.rake
newrelic_rpm-9.7.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.6.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.5.0 lib/tasks/coverage_report.rake
newrelic_rpm-9.4.2 lib/tasks/coverage_report.rake
newrelic_rpm-9.4.1 lib/tasks/coverage_report.rake
newrelic_rpm-9.4.0 lib/tasks/coverage_report.rake