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