MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteTestAction

Method WriteTestAction

Source/cmXCodeScheme.cxx:117–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void cmXCodeScheme::WriteTestAction(cmXMLWriter& xout,
118 std::string const& configuration,
119 std::string const& container)
120{
121 xout.StartElement("TestAction");
122 xout.BreakAttributes();
123 xout.Attribute("buildConfiguration", configuration);
124 xout.Attribute("selectedDebuggerIdentifier",
125 "Xcode.DebuggerFoundation.Debugger.LLDB");
126 xout.Attribute("selectedLauncherIdentifier",
127 "Xcode.DebuggerFoundation.Launcher.LLDB");
128 xout.Attribute("shouldUseLaunchSchemeArgsEnv", "YES");
129 WriteCustomLLDBInitFile(xout, configuration);
130
131 xout.StartElement("Testables");
132 for (auto const* test : this->Tests) {
133 xout.StartElement("TestableReference");
134 xout.BreakAttributes();
135 xout.Attribute("skipped", "NO");
136 WriteBuildableReference(xout, test, container);
137 xout.EndElement(); // TestableReference
138 }
139 xout.EndElement();
140
141 if (IsTestable()) {
142 xout.StartElement("MacroExpansion");
143 WriteBuildableReference(xout, this->Target, container);
144 xout.EndElement(); // MacroExpansion
145 }
146
147 xout.StartElement("AdditionalOptions");
148 xout.EndElement();
149
150 xout.EndElement(); // TestAction
151}
152
153void cmXCodeScheme::WriteLaunchAction(cmXMLWriter& xout,
154 std::string const& configuration,

Callers

nothing calls this directly

Calls 4

BreakAttributesMethod · 0.80
AttributeMethod · 0.80
StartElementMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected