Class: Xcodeproj::XCScheme::TestAction::TestableReference::Test

Inherits:
XMLElementWrapper show all
Defined in:
lib/xcodeproj/scheme/test_action.rb

Instance Attribute Summary

Attributes inherited from XMLElementWrapper

#xml_element

Instance Method Summary collapse

Methods inherited from XMLElementWrapper

#to_s

Constructor Details

#initialize(node = nil) ⇒ Test

Returns a new instance of Test.

Parameters:

  • node (REXML::Element) (defaults to: nil)

    The ‘Test’ XML node that this object will wrap. If nil, will create a default XML node to use.



326
327
328
329
330
# File 'lib/xcodeproj/scheme/test_action.rb', line 326

def initialize(node = nil)
  create_xml_element_with_fallback(node, 'Test') do
    self.identifier = node.attributes['Identifier'] unless node.nil?
  end
end

Instance Method Details

#identifierString

Returns Skipped test class name.

Returns:

  • (String)

    Skipped test class name



335
336
337
# File 'lib/xcodeproj/scheme/test_action.rb', line 335

def identifier
  @xml_element.attributes['Identifier']
end

#identifier=(value) ⇒ Object

Parameters:

  • value (String)

    Set the name of the skipped test class name



342
343
344
# File 'lib/xcodeproj/scheme/test_action.rb', line 342

def identifier=(value)
  @xml_element.attributes['Identifier'] = value
end