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.16-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.16-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.16-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.16-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.16-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.16-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.16 lib/tasks/coverage.rake
ariadne_view_components-0.0.15-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.15-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.15-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.15-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.15-arm64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.15-aarch64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.15 lib/tasks/coverage.rake
ariadne_view_components-0.0.14 lib/tasks/coverage.rake
ariadne_view_components-0.0.14-x86_64-linux lib/tasks/coverage.rake
ariadne_view_components-0.0.14-x86_64-darwin lib/tasks/coverage.rake
ariadne_view_components-0.0.14-x64-mingw32 lib/tasks/coverage.rake
ariadne_view_components-0.0.14-x64-mingw-ucrt lib/tasks/coverage.rake
ariadne_view_components-0.0.14-arm64-darwin lib/tasks/coverage.rake