Sha256: b985d69d3f8492e4785d67d24e2242e332a3f6e4e866d2c22fcd89ce35b0c4b5
Contents?: true
Size: 745 Bytes
Versions: 187
Compression:
Stored size: 745 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) require 'require_all' unless ENV['CI'] require 'simplecov' CoverageGroup = Struct.new(:name, :regex) SimpleCov.start do add_filter '/test/' groups = [ CoverageGroup.new('Generator', %r{lib/generator}), CoverageGroup.new('Tasks', %r{tasks}), CoverageGroup.new('Cases', %r{exercises/.*_case.rb$}) ] groups.each do |group| add_group group.name do |file| file.filename.match(group.regex) end end add_group 'Other' do |file| groups.none? { |group| file.filename.match(group.regex) } end end end require 'minitest/autorun' # So we can be sure we have coverage on the whole lib directory: require_all 'lib'
Version data entries
187 entries across 187 versions & 1 rubygems