@@ -264,6 +264,39 @@ struct CommandHelpersTests {
264264 #expect( args. contains ( " COMPILER_INDEX_STORE_ENABLE=NO " ) )
265265 }
266266
267+ @Test ( " buildXcodebuildArgs skips macro validation by default " )
268+ func buildArgsSkipMacroValidationByDefault( ) {
269+ let projectPath = URL ( fileURLWithPath: " /path/to/Client.xcodeproj " )
270+ let simulator = createMockSimulatorSelection ( )
271+
272+ let args = CommandHelpers . buildXcodebuildArgs (
273+ projectPath: projectPath,
274+ scheme: " Fennec " ,
275+ configuration: " Fennec " ,
276+ simulator: simulator,
277+ derivedDataPath: nil
278+ )
279+
280+ #expect( args. contains ( " -skipMacroValidation " ) )
281+ }
282+
283+ @Test ( " buildXcodebuildArgs can omit macro validation skip " )
284+ func buildArgsCanOmitMacroValidationSkip( ) {
285+ let projectPath = URL ( fileURLWithPath: " /path/to/Client.xcodeproj " )
286+ let simulator = createMockSimulatorSelection ( )
287+
288+ let args = CommandHelpers . buildXcodebuildArgs (
289+ projectPath: projectPath,
290+ scheme: " Fennec " ,
291+ configuration: " Fennec " ,
292+ simulator: simulator,
293+ derivedDataPath: nil ,
294+ skipMacroValidation: false
295+ )
296+
297+ #expect( !args. contains ( " -skipMacroValidation " ) )
298+ }
299+
267300 // MARK: - buildXcodebuildArgsForDevice Tests
268301
269302 @Test ( " buildXcodebuildArgsForDevice includes project path " )
@@ -357,6 +390,35 @@ struct CommandHelpersTests {
357390 #expect( args. contains ( " /tmp/DerivedData " ) )
358391 }
359392
393+ @Test ( " buildXcodebuildArgsForDevice skips macro validation by default " )
394+ func buildDeviceArgsSkipMacroValidationByDefault( ) {
395+ let projectPath = URL ( fileURLWithPath: " /path/to/Client.xcodeproj " )
396+
397+ let args = CommandHelpers . buildXcodebuildArgsForDevice (
398+ projectPath: projectPath,
399+ scheme: " Fennec " ,
400+ configuration: " Fennec " ,
401+ derivedDataPath: nil
402+ )
403+
404+ #expect( args. contains ( " -skipMacroValidation " ) )
405+ }
406+
407+ @Test ( " buildXcodebuildArgsForDevice can omit macro validation skip " )
408+ func buildDeviceArgsCanOmitMacroValidationSkip( ) {
409+ let projectPath = URL ( fileURLWithPath: " /path/to/Client.xcodeproj " )
410+
411+ let args = CommandHelpers . buildXcodebuildArgsForDevice (
412+ projectPath: projectPath,
413+ scheme: " Fennec " ,
414+ configuration: " Fennec " ,
415+ derivedDataPath: nil ,
416+ skipMacroValidation: false
417+ )
418+
419+ #expect( !args. contains ( " -skipMacroValidation " ) )
420+ }
421+
360422 // MARK: - ListSims Command Tests
361423
362424 @Test ( " ListSims command has correct configuration " )
0 commit comments