Class: Awetestlib::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/awetestlib/runner.rb

Direct Known Subclasses

Awetestlib::Regression::Runner

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Runner

Returns a new instance of Runner.



3
4
5
6
# File 'lib/awetestlib/runner.rb', line 3

def initialize(options = {})
  build_class = "Awetestlib::#{check_script_type(options[:script_type])}::Runner".constantize
  build_class.new(options).start
end

Instance Method Details

#check_script_type(script_type) ⇒ Object



8
9
10
11
12
13
# File 'lib/awetestlib/runner.rb', line 8

def check_script_type(script_type)
  case script_type
    when "Regression" ; "Regression" #Should this be regression? possible rename
    else              ; script_type
  end
end