Sha256: 9648d889e3e64d87b83d2ae195f3bccde8c0cfe9ef35b57212849a152daa20cf

Contents?: true

Size: 1.06 KB

Versions: 14

Compression:

Stored size: 1.06 KB

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
ENV['INSTANA_GEM_TEST'] = 'true'
require "rubygems"
require "bundler/setup"
Bundler.require(:default, :test)

require "minitest/spec"
require "minitest/autorun"
require "minitest/reporters"
require "minitest/debugger" if ENV['DEBUG']
require 'webmock/minitest'
::WebMock.disable_net_connect!(allow_localhost: true)

require "instana/test"
::Instana::Test.setup_environment

# Boot background webservers to test against.
require "./test/servers/rackapp_6511"

case File.basename(ENV['BUNDLE_GEMFILE'])
when /rails50|rails42|rails32/
  require './test/servers/rails_3205'
end

WebMock.disable_net_connect!(allow_localhost: true)

Minitest::Reporters.use! MiniTest::Reporters::SpecReporter.new

# Set this (or a subset) if you want increased debug output
#::Instana.logger.debug_level = [ :agent, :agent_comm, :trace ]

# Used to reset the gem to boot state.  It clears out any queued and/or staged
# traces and resets the tracer to no active trace.
#
def clear_all!
  ::Instana.processor.clear!
  ::Instana.tracer.clear!
  nil
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
instana-1.4.9 test/test_helper.rb
instana-1.4.8 test/test_helper.rb
instana-1.4.7 test/test_helper.rb
instana-1.4.6 test/test_helper.rb
instana-1.4.5 test/test_helper.rb
instana-1.4.4 test/test_helper.rb
instana-1.4.2 test/test_helper.rb
instana-1.4.1 test/test_helper.rb
instana-1.4.0 test/test_helper.rb
instana-1.3.3 test/test_helper.rb
instana-1.3.2 test/test_helper.rb
instana-1.3.1 test/test_helper.rb
instana-1.3.0 test/test_helper.rb
instana-1.2.0 test/test_helper.rb