MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / parseSchemeTargets

Function parseSchemeTargets

src/utils/test-preflight.ts:165–188  ·  view source on GitHub ↗
(schemeContent: string)

Source from the content-addressed store, hash-verified

163}
164
165function parseSchemeTargets(schemeContent: string): ReferencedTestTarget[] {
166 const targets: ReferencedTestTarget[] = [];
167 const testableMatches = [
168 ...schemeContent.matchAll(/<TestableReference([\s\S]*?)<\/TestableReference>/g),
169 ];
170 for (const match of testableMatches) {
171 const block = match[1];
172 if (extractAttributeValue(block, 'skipped') === 'YES') {
173 continue;
174 }
175
176 const blueprintName = extractAttributeValue(block, 'BlueprintName');
177 if (!blueprintName) {
178 continue;
179 }
180
181 targets.push({
182 name: blueprintName,
183 containerPath: extractAttributeValue(block, 'ReferencedContainer'),
184 });
185 }
186
187 return targets;
188}
189
190async function parseTestPlanTargets(
191 schemeContent: string,

Callers 1

resolveTestPreflightFunction · 0.85

Calls 2

extractAttributeValueFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected