class TestCenter::Helper::XcodeJunit::TestCase
Attributes
identifier[R]
location[R]
message[R]
skipped_test[R]
Public Class Methods
new(xml_element)
click to toggle source
# File lib/fastlane/plugin/test_center/helper/junit_helper.rb, line 75 def initialize(xml_element) @root = xml_element name = xml_element.attribute('name').value failure_element = xml_element.elements['failure'] if failure_element @message = failure_element.attribute('message')&.value || '' @location = failure_element.text || '' end full_testsuite = xml_element.parent.attribute('name').value testsuite = full_testsuite.testsuite is_swift = full_testsuite.testsuite_swift? testable_filename = xml_element.parent.parent.attribute('name').value testable = File.basename(testable_filename, '.xctest') @identifier = "#{testable}/#{testsuite}/#{name}" @skipped_test = Xcodeproj::XCScheme::TestAction::TestableReference::SkippedTest.new @skipped_test.identifier = "#{testsuite}/#{name}#{'()' if is_swift}" @passed = xml_element.get_elements('failure').size.zero? end
Public Instance Methods
passed?()
click to toggle source
# File lib/fastlane/plugin/test_center/helper/junit_helper.rb, line 95 def passed? @passed end