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.



364
365
366
367
368
# File 'lib/xcodeproj/scheme/test_action.rb', line 364

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



373
374
375
# File 'lib/xcodeproj/scheme/test_action.rb', line 373

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

#identifier=(value) ⇒ Object

Parameters:

  • value (String)

    Set the name of the skipped test class name



380
381
382
# File 'lib/xcodeproj/scheme/test_action.rb', line 380

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