Method: Oats::TestData.tests

Defined in:
lib/oats/test_data.rb

.testsObject

Returns array of test objects in the currently executing list TestData.tests is the same as as the current_test



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/oats/test_data.rb', line 12

def TestData.tests
  cur_test_list = TestList.current
  return nil unless cur_test_list
  vars = cur_test_list.variations
  return nil unless vars
  last_var = vars.last
  return nil unless last_var
  tests = last_var.tests
  return nil unless tests
  return tests
end