Method: Xcodeproj::XCScheme::TestAction#initialize

Defined in:
lib/xcodeproj/scheme/test_action.rb

#initialize(node = nil) ⇒ TestAction

Returns a new instance of TestAction.

Parameters:

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

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



12
13
14
15
16
17
18
19
20
# File 'lib/xcodeproj/scheme/test_action.rb', line 12

def initialize(node = nil)
  create_xml_element_with_fallback(node, 'TestAction') do
    self.build_configuration = 'Debug'
    @xml_element.attributes['selectedDebuggerIdentifier'] = 'Xcode.DebuggerFoundation.Debugger.LLDB'
    @xml_element.attributes['selectedLauncherIdentifier'] = 'Xcode.DebuggerFoundation.Launcher.LLDB'
    self.should_use_launch_scheme_args_env = true
    @xml_element.add_element('Testables')
  end
end