Sha256: 3c446bdf53d636c7dbef1db90dc1e9eb16a8ce804b76663be19efe568b5cef9b

Contents?: true

Size: 507 Bytes

Versions: 24

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

namespace :coverage do
  desc "Run coverage report. This should ideally be done only on CI."
  task :report do
    require "simplecov"
    require "simplecov-console"

    SimpleCov.collate(Dir["coverage/.resultset.json"], "rails") do
      formatter SimpleCov::Formatter::Console

      minimum_coverage 100
      maximum_coverage_drop 2

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.45-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.45 lib/tasks/coverage.rake
ariadne_view_components-0.0.45-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.45-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.45-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.45-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.44-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.44-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.44-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.44-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.44-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.44 lib/tasks/coverage.rake
ariadne_view_components-0.0.43-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.43-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.43-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.43-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.43-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.43 lib/tasks/coverage.rake
ariadne_view_components-0.0.42-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.42-arm64-darwin lib/tasks/coverage.rake