| 26 | } |
| 27 | |
| 28 | function createPreflight(): TestPreflightResult { |
| 29 | return { |
| 30 | scheme: 'Weather', |
| 31 | configuration: 'Debug', |
| 32 | projectPath: 'Weather.xcodeproj', |
| 33 | destinationName: 'iPhone 17 Pro', |
| 34 | selectors: { |
| 35 | onlyTesting: [], |
| 36 | skipTesting: [], |
| 37 | }, |
| 38 | targets: [ |
| 39 | { |
| 40 | name: 'WeatherTests', |
| 41 | files: [ |
| 42 | { |
| 43 | path: 'WeatherTests/WeatherTests.swift', |
| 44 | tests: [ |
| 45 | { |
| 46 | framework: 'swift-testing', |
| 47 | targetName: 'WeatherTests', |
| 48 | typeName: 'WeatherTests', |
| 49 | methodName: 'emptySearchReturnsNoResults', |
| 50 | displayName: 'WeatherTests/WeatherTests/emptySearchReturnsNoResults', |
| 51 | line: 12, |
| 52 | parameterized: false, |
| 53 | }, |
| 54 | ], |
| 55 | }, |
| 56 | ], |
| 57 | warnings: [], |
| 58 | }, |
| 59 | ], |
| 60 | warnings: [], |
| 61 | totalTests: 1, |
| 62 | completeness: 'complete', |
| 63 | }; |
| 64 | } |
| 65 | |
| 66 | describe('resolveTestProgressEnabled', () => { |
| 67 | const originalRuntime = process.env.XCODEBUILDMCP_RUNTIME; |