Sha256: a9e721af9f913595352499cfca93088911d68f066120a232299bad00776a0705

Contents?: true

Size: 764 Bytes

Versions: 4

Compression:

Stored size: 764 Bytes

Contents

# frozen_string_literal: true

require File.expand_path('../test_helper', File.dirname(__FILE__))

class BaseTest < Test::Unit::TestCase
  def setup
    Coverband.configure do |config|
      config.root                = Dir.pwd
      config.s3_bucket           = nil
      config.root_paths          = ['/app_path/']
      config.ignore              = ['vendor']
      config.reporting_frequency = 100.0
      config.reporter            = 'std_out'
      config.store               = Coverband::Adapters::RedisStore.new(Redis.new)
    end
  end

  test 'defaults ' do
    coverband = Coverband::Collectors::Coverage.instance.reset_instance
    assert_equal ['vendor', 'internal:prelude', 'schema.rb'], coverband.instance_variable_get('@ignore_patterns')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coverband-4.0.1.alpha test/unit/configuration_test.rb
coverband-4.0.0 test/unit/configuration_test.rb
coverband-4.0.0.alpha test/unit/configuration_test.rb
coverband-3.0.1 test/unit/configuration_test.rb