( executor: CommandExecutor = getDefaultCommandExecutor(), fileSystemExecutor: FileSystemExecutor = getDefaultFileSystemExecutor(), prepared?: PreparedTestMacosExecution, )
| 105 | } |
| 106 | |
| 107 | export 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 | |
| 139 | export async function testMacosLogic( |
| 140 | params: TestMacosParams, |
no test coverage detected