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.137 tracks/ruby/test/test_helper.rb
trackler-2.2.1.136 tracks/ruby/test/test_helper.rb
trackler-2.2.1.135 tracks/ruby/test/test_helper.rb
trackler-2.2.1.134 tracks/ruby/test/test_helper.rb
trackler-2.2.1.133 tracks/ruby/test/test_helper.rb
trackler-2.2.1.132 tracks/ruby/test/test_helper.rb
trackler-2.2.1.131 tracks/ruby/test/test_helper.rb
trackler-2.2.1.130 tracks/ruby/test/test_helper.rb
trackler-2.2.1.129 tracks/ruby/test/test_helper.rb
trackler-2.2.1.128 tracks/ruby/test/test_helper.rb
trackler-2.2.1.127 tracks/ruby/test/test_helper.rb
trackler-2.2.1.126 tracks/ruby/test/test_helper.rb
trackler-2.2.1.125 tracks/ruby/test/test_helper.rb
trackler-2.2.1.124 tracks/ruby/test/test_helper.rb
trackler-2.2.1.123 tracks/ruby/test/test_helper.rb
trackler-2.2.1.122 tracks/ruby/test/test_helper.rb
trackler-2.2.1.121 tracks/ruby/test/test_helper.rb
trackler-2.2.1.120 tracks/ruby/test/test_helper.rb
trackler-2.2.1.119 tracks/ruby/test/test_helper.rb
trackler-2.2.1.118 tracks/ruby/test/test_helper.rb