Sha256: 0043209574d8231f205573f93d38349463398fbbc6c52d1d7b7d10ae418183c1

Contents?: true

Size: 562 Bytes

Versions: 8

Compression:

Stored size: 562 Bytes

Contents

require 'open-uri'  #; load_time
module Awetestlib
  # Parent class. Each script type will have a Runner that inherits from this class.
  class Runner
    def initialize(options = {})
      build_class = "Awetestlib::#{check_script_type(options[:script_type])}::Runner".constantize
      build_class.new(options).start
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awetestlib-0.1.30 lib/awetestlib/runner.rb
awetestlib-0.1.30-x86-mingw32 lib/awetestlib/runner.rb
awetestlib-0.1.30pre3 lib/awetestlib/runner.rb
awetestlib-0.1.30pre3-x86-mingw32 lib/awetestlib/runner.rb
awetestlib-0.1.30pre2 lib/awetestlib/runner.rb
awetestlib-0.1.30pre2-x86-mingw32 lib/awetestlib/runner.rb
awetestlib-0.1.30pre1-x86-mingw32 lib/awetestlib/runner.rb
awetestlib-0.1.30pre1 lib/awetestlib/runner.rb