MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / normalizeSuiteName

Function normalizeSuiteName

src/utils/xcodebuild-line-parsers.ts:58–62  ·  view source on GitHub ↗
(rawSuiteName: string)

Source from the content-addressed store, hash-verified

56}
57
58function normalizeSuiteName(rawSuiteName: string): string {
59 const parts = rawSuiteName.split('.').filter(Boolean);
60 const normalized = parts.length >= 2 ? (parts.at(-1) ?? rawSuiteName) : rawSuiteName;
61 return normalized.replaceAll('_', ' ');
62}
63
64export function parseRawTestName(rawName: string): { suiteName?: string; testName: string } {
65 const objcMatch = rawName.match(/^-\[(.+?)\s+(.+)\]$/u);

Callers 2

parseRawTestNameFunction · 0.85
parseFailureDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected