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

Function createTestSelectionInfo

src/utils/xcodebuild-domain-results.ts:212–233  ·  view source on GitHub ↗
(preflight?: TestPreflightResult)

Source from the content-addressed store, hash-verified

210}
211
212function createTestSelectionInfo(preflight?: TestPreflightResult): TestSelectionInfo | undefined {
213 if (!preflight || preflight.totalTests === 0) {
214 return undefined;
215 }
216
217 const discoveredItems = collectResolvedTestSelectors(preflight);
218 const discoveryEvent = createTestDiscoveryFragment(preflight);
219 const hasExplicitSelection =
220 preflight.selectors.onlyTesting.length > 0 || preflight.selectors.skipTesting.length > 0;
221
222 return {
223 ...(hasExplicitSelection ? { selected: discoveredItems } : {}),
224 ...(discoveryEvent
225 ? {
226 discovered: {
227 total: discoveryEvent.total,
228 items: discoveryEvent.tests,
229 },
230 }
231 : {}),
232 };
233}
234
235interface FinalizeXcodebuildResultOptions {
236 started: StartedPipeline;

Callers 1

createTestDomainResultFunction · 0.85

Calls 2

Tested by

no test coverage detected