Sha256: d2200b6e749861a9b4a96dff541effd3281315694052cc7cb7861fecffbd5c46

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

require "simplecov"
SimpleCov.start
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

require 'rubygems'
require 'bundler'
require 'docker'
require 'timecop'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'test/unit'
require 'pry'


require "simplecov"
require "codeclimate-test-reporter"
if ENV['CIRCLE_ARTIFACTS']
  dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
  SimpleCov.coverage_dir(dir)
end



$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'fluent/test'
require 'webmock/test_unit'
WebMock.disable_net_connect!(:allow => "codeclimate.com")

if ENV.has_key?('VERBOSE')
  $log = Fluent::Log.new(Fluent::Test::DummyLogDevice.new, Fluent::Log::LEVEL_TRACE)
else
  nulllogger = Object.new
  nulllogger.instance_eval {|obj|
    def method_missing(method, *args)
      # pass
    end
  }
  $log = nulllogger
end
Docker.url = 'tcp://example.com:5422'
require 'fluent/plugin/filter_mesosphere_filter'

class Test::Unit::TestCase
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fluent-plugin-mesosphere-filter-0.1.11 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.10 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.9 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.8 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.7 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.6 test/helper.rb
fluent-plugin-mesosphere-filter-0.1.5 test/helper.rb