Sha256: 81e06722affc681a92de2d370e3dd1e37fed36403d23077dd3f602498aae1876

Contents?: true

Size: 499 Bytes

Versions: 178

Compression:

Stored size: 499 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.minimum_coverage(100)

    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

178 entries across 178 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.34 lib/tasks/coverage.rake
ariadne_view_components-0.0.34-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.34-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.34-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.34-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.34-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.34-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.33 lib/tasks/coverage.rake
ariadne_view_components-0.0.33-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.33-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.33-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.33-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.33-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.33-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.32 lib/tasks/coverage.rake
ariadne_view_components-0.0.32-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.32-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.32-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.32-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.32-arm64-darwin lib/tasks/coverage.rake