Class: Tuev

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

Defined Under Namespace

Classes: TestSuite

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



6
7
8
# File 'lib/tuev/tuev.rb', line 6

def config
  @config
end

.contrib_dirObject

Returns the value of attribute contrib_dir.



6
7
8
# File 'lib/tuev/tuev.rb', line 6

def contrib_dir
  @contrib_dir
end

.cwdObject

Returns the value of attribute cwd.



6
7
8
# File 'lib/tuev/tuev.rb', line 6

def cwd
  @cwd
end

.gem_pathObject

Returns the value of attribute gem_path.



6
7
8
# File 'lib/tuev/tuev.rb', line 6

def gem_path
  @gem_path
end

.read_configObject

Returns the value of attribute read_config.



6
7
8
# File 'lib/tuev/tuev.rb', line 6

def read_config
  @read_config
end

Class Method Details

.selenium_confObject



33
34
35
36
37
38
39
# File 'lib/tuev/tuev.rb', line 33

def self.selenium_conf
  @selenium_conf ||= {
     :host     => config["selenium"]["host"],
     :port     => config["selenium"]["port"],
     :browsers => [*config["selenium"]["browsers"]]
  }
end

.test_outObject



29
30
31
# File 'lib/tuev/tuev.rb', line 29

def self.test_out
  config["tests_out"] || "/tmp"
end

.test_suitesObject



23
24
25
26
27
# File 'lib/tuev/tuev.rb', line 23

def self.test_suites
  config["test_suites"].inject([]) do |memo, test_suite_conf|
    memo << TestSuite.new(test_suite_conf)
  end
end