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