Sha256: eb8cd0af8fc9f15b470d5a93cefed28a646b9171dbf35301192698a5084459ca

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 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
#gem 'log4r'
#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

4 entries across 4 versions & 1 rubygems

Version Path
oats-0.1.0 lib/oats.rb
oats-0.0.9 lib/oats.rb
oats-0.0.8 lib/oats.rb
oats-0.0.7 lib/oats.rb