Class: TestCenter::Helper::XcodeJunit::Testable

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/test_center/helper/junit_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(xml_element) ⇒ Testable

Returns a new instance of Testable.



26
27
28
29
30
31
32
# File 'lib/fastlane/plugin/test_center/helper/junit_helper.rb', line 26

def initialize(xml_element)
  @root = xml_element
  @testsuites = []
  @root.elements.each('testsuite') do |testsuite_element|
    @testsuites << TestSuite.new(testsuite_element)
  end
end

Instance Method Details

#nameObject



34
35
36
# File 'lib/fastlane/plugin/test_center/helper/junit_helper.rb', line 34

def name
  return @root.attribute('name').value
end

#testsuitesObject



38
39
40
# File 'lib/fastlane/plugin/test_center/helper/junit_helper.rb', line 38

def testsuites
  return @testsuites
end