Sha256: d27b4a2045e269f760ab9a5c2cec2c3610b8d24c3d6ad08c001b00ae2fb1a6ac

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

namespace :coverage do
  task :report do
    require "simplecov"
    require "simplecov-console"

    SimpleCov.minimum_coverage 99

    SimpleCov.collate Dir["simplecov-resultset-*/.resultset.json"], "rails" do
      formatter SimpleCov::Formatter::Console

      add_group "Ignored Code" do |src_file|
        File.readlines(src_file.filename).grep(/:nocov:/).any?
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
primer_view_components-0.0.103 lib/tasks/coverage.rake
primer_view_components-0.0.102 lib/tasks/coverage.rake
primer_view_components-0.0.101 lib/tasks/coverage.rake
primer_view_components-0.0.100 lib/tasks/coverage.rake
primer_view_components-0.0.99 lib/tasks/coverage.rake
primer_view_components-0.0.98 lib/tasks/coverage.rake
primer_view_components-0.0.97 lib/tasks/coverage.rake
primer_view_components-0.0.96 lib/tasks/coverage.rake
primer_view_components-0.0.95 lib/tasks/coverage.rake