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

Version Path
trackler-2.2.1.76 tracks/ruby/test/test_helper.rb
trackler-2.2.1.75 tracks/ruby/test/test_helper.rb
trackler-2.2.1.74 tracks/ruby/test/test_helper.rb
trackler-2.2.1.73 tracks/ruby/test/test_helper.rb
trackler-2.2.1.72 tracks/ruby/test/test_helper.rb
trackler-2.2.1.71 tracks/ruby/test/test_helper.rb
trackler-2.2.1.70 tracks/ruby/test/test_helper.rb
trackler-2.2.1.69 tracks/ruby/test/test_helper.rb
trackler-2.2.1.68 tracks/ruby/test/test_helper.rb
trackler-2.2.1.67 tracks/ruby/test/test_helper.rb
trackler-2.2.1.66 tracks/ruby/test/test_helper.rb
trackler-2.2.1.65 tracks/ruby/test/test_helper.rb
trackler-2.2.1.64 tracks/ruby/test/test_helper.rb
trackler-2.2.1.63 tracks/ruby/test/test_helper.rb
trackler-2.2.1.62 tracks/ruby/test/test_helper.rb
trackler-2.2.1.61 tracks/ruby/test/test_helper.rb
trackler-2.2.1.60 tracks/ruby/test/test_helper.rb
trackler-2.2.1.59 tracks/ruby/test/test_helper.rb
trackler-2.2.1.58 tracks/ruby/test/test_helper.rb
trackler-2.2.1.57 tracks/ruby/test/test_helper.rb