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

Function emitFailureFragment

src/utils/xcodebuild-event-parser.ts:161–182  ·  view source on GitHub ↗
(failure: {
    suiteName?: string;
    testName?: string;
    message: string;
    location?: string;
    durationMs?: number;
  })

Source from the content-addressed store, hash-verified

159 }
160
161 function emitFailureFragment(failure: {
162 suiteName?: string;
163 testName?: string;
164 message: string;
165 location?: string;
166 durationMs?: number;
167 }): void {
168 if (operation !== 'TEST') {
169 return;
170 }
171
172 onEvent({
173 kind: 'test-result',
174 fragment: 'test-failure',
175 operation: 'TEST',
176 suite: failure.suiteName,
177 test: failure.testName,
178 message: failure.message,
179 location: failure.location,
180 durationMs: failure.durationMs,
181 });
182 }
183
184 function queueFailureDiagnostic(failure: {
185 suiteName?: string;

Callers 3

queueFailureDiagnosticFunction · 0.85
applyFailureDurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected