Sha256: 5a6d94a40338d8e64d2cd412bc7019108e1c60cac7e7a56221f4138cbe72b768

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

defined? Jruby && JRuby.objectspace = true # avoid error  http://rubyforge.org/pipermail/nokogiri-talk/2010-April/000355.html

$oats_execution = {}  # Keeps variables that persists throughout a agents life, across testlists
# Need to be before reading classes to allow the loaded classes register themselves here
# In agent mode, this will contain 'options'.
# Classes of OATS can check existence of this to determine whether called by OATS or OCC

require 'pp'
require 'oats/commandline_options'
options = Oats::CommandlineOptions.options
$oats_execution['options'] = options
if options['execution:occ:agent_nickname'] || options['execution:occ:agent_port'] || options['_:command']
  $oats_execution['agent'] = options  # Existence of this from now on implies running in agent mode
end

ENV['OATS_HOME'] ||= File.expand_path( '..', File.dirname(__FILE__) )
ENV['OATS_TESTS'] ||= options['_:dir_tests'] || (ENV['OATS_HOME'] + '/oats_tests')

$:.unshift(ENV['OATS_TESTS'] + '/lib')

require 'oats/keywords'

# GEMS needed by OATS.
require 'rubygems'
#require "bundler/setup"
#Bundler.require
#require 'deep_merge' # Need modified version of https://github.com/danielsdeleo/deep_merge for 1.9 compatibility
require 'log4r'  # http://log4r.sourceforge.net/rdoc/index.html

require 'oats/driver'
require 'oats/oats_lock'

require 'oats/user_api' #  Interface methods to user methods implemented in other modules

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oats-0.1.4 lib/oats.rb
oats-0.1.1 lib/oats.rb