Class: TestCenter::Helper::XcodeJunit::Testable
- Inherits:
-
Object
- Object
- TestCenter::Helper::XcodeJunit::Testable
- Defined in:
- lib/fastlane/plugin/test_center/helper/junit_helper.rb
Instance Method Summary collapse
-
#initialize(xml_element) ⇒ Testable
constructor
A new instance of Testable.
- #name ⇒ Object
- #testsuites ⇒ Object
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
#name ⇒ Object
34 35 36 |
# File 'lib/fastlane/plugin/test_center/helper/junit_helper.rb', line 34 def name return @root.attribute('name').value end |
#testsuites ⇒ Object
38 39 40 |
# File 'lib/fastlane/plugin/test_center/helper/junit_helper.rb', line 38 def testsuites return @testsuites end |