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

Function parseTestCaseLine

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

Source from the content-addressed store, hash-verified

88}
89
90export function parseTestCaseLine(line: string): ParsedTestCase | null {
91 const match = line.match(
92 /^Test [Cc]ase '(.+)' (passed|failed|skipped)(?: on '.+')? \(([^)]+)\)/u,
93 );
94 if (!match) {
95 return null;
96 }
97 const [, rawName, status, durationText] = match;
98 const { suiteName, testName } = parseRawTestName(rawName);
99 return {
100 status: status as 'passed' | 'failed' | 'skipped',
101 rawName,
102 suiteName,
103 testName,
104 durationText,
105 };
106}
107
108export function parseTotalsLine(line: string): ParsedTotals | null {
109 const match = line.match(

Callers 1

processLineFunction · 0.90

Calls 1

parseRawTestNameFunction · 0.85

Tested by

no test coverage detected