@@ -55,47 +55,16 @@ extension BuildControllerTests {
5555 func selectsCurrentDirectoryAsOutput( ) throws {
5656 let projectDirectory = try makeProjectDirectory ( path: " /project/app " , executableNames: [ " app " ] )
5757 let ( sut, service, _) = makeSUT ( projectDirectory: projectDirectory, selectedIndex: 0 )
58-
58+
5959 try sut. buildExecutable ( path: nil , buildType: . x86_64, clean: true , openInFinder: false )
60-
60+
6161 let buildData = try #require( service. buildData)
6262 if case . currentDirectory( let buildType) = buildData. outputLocation {
6363 #expect( buildType == . x86_64)
6464 } else {
6565 Issue . record ( " Expected currentDirectory output location " )
6666 }
6767 }
68-
69- @Test ( " Selects desktop as output location " )
70- func selectsDesktopAsOutput( ) throws {
71- let projectDirectory = try makeProjectDirectory ( path: " /project/app " , executableNames: [ " app " ] )
72- let ( sut, service, _) = makeSUT ( projectDirectory: projectDirectory, selectedIndex: 1 )
73-
74- try sut. buildExecutable ( path: nil , buildType: . universal, clean: true , openInFinder: false )
75-
76- let buildData = try #require( service. buildData)
77- if case . desktop = buildData. outputLocation {
78- // Success
79- } else {
80- Issue . record ( " Expected desktop output location " )
81- }
82- }
83-
84- @Test ( " Handles custom output location with folder browser " , . disabled( ) ) // TODO: -
85- func handlesCustomOutputLocation( ) throws {
86- let projectDirectory = try makeProjectDirectory ( path: " /project/app " , executableNames: [ " app " ] )
87- let customFolder = MockDirectory ( path: " /custom/location " )
88- let ( sut, service, _) = makeSUT ( projectDirectory: projectDirectory, selectedIndex: 2 , permissionResponses: [ true ] , browsedDirectory: customFolder)
89-
90- try sut. buildExecutable ( path: nil , buildType: . universal, clean: true , openInFinder: false )
91-
92- let buildData = try #require( service. buildData)
93- if case . custom( let path) = buildData. outputLocation {
94- #expect( path == " /custom/location " )
95- } else {
96- Issue . record ( " Expected custom output location " )
97- }
98- }
9968}
10069
10170
0 commit comments