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

Function createTestMacOSExecutor

src/mcp/tools/macos/test_macos.ts:107–137  ·  view source on GitHub ↗
(
  executor: CommandExecutor = getDefaultCommandExecutor(),
  fileSystemExecutor: FileSystemExecutor = getDefaultFileSystemExecutor(),
  prepared?: PreparedTestMacosExecution,
)

Source from the content-addressed store, hash-verified

105}
106
107export function createTestMacOSExecutor(
108 executor: CommandExecutor = getDefaultCommandExecutor(),
109 fileSystemExecutor: FileSystemExecutor = getDefaultFileSystemExecutor(),
110 prepared?: PreparedTestMacosExecution,
111): StreamingExecutor<TestMacosParams, TestMacosResult> {
112 return async (params, ctx) => {
113 const resolved = prepared ?? (await prepareTestMacosExecution(params, fileSystemExecutor));
114 const executeTest = createTestExecutor(executor, {
115 preflight: resolved.preflight,
116 toolName: 'test_macos',
117 target: 'macos',
118 request: resolved.invocationRequest,
119 });
120
121 return executeTest(
122 {
123 projectPath: params.projectPath,
124 workspacePath: params.workspacePath,
125 scheme: params.scheme,
126 configuration: resolved.configuration,
127 derivedDataPath: params.derivedDataPath,
128 extraArgs: params.extraArgs,
129 preferXcodebuild: params.preferXcodebuild ?? false,
130 platform: XcodePlatform.macOS,
131 testRunnerEnv: params.testRunnerEnv,
132 progress: params.progress,
133 },
134 ctx,
135 );
136 };
137}
138
139export async function testMacosLogic(
140 params: TestMacosParams,

Callers 1

testMacosLogicFunction · 0.85

Calls 4

createTestExecutorFunction · 0.90

Tested by

no test coverage detected