@@ -84,7 +84,9 @@ struct SelectiveTestingProjectTests {
8484 // then
8585 let result = try await tool. run ( )
8686 #expect( result == Set ( [
87- testTool. mainProjectMainTarget ( )
87+ testTool. mainProjectMainTarget ( ) ,
88+ testTool. mainProjectTests ( ) ,
89+ testTool. mainProjectUITests ( ) ,
8890 ] ) )
8991 }
9092
@@ -125,7 +127,31 @@ struct SelectiveTestingProjectTests {
125127 // then
126128 let result = try await tool. run ( )
127129 #expect( result == Set ( [
128- testTool. mainProjectMainTarget ( )
130+ testTool. mainProjectMainTarget ( ) ,
131+ testTool. mainProjectTests ( ) ,
132+ testTool. mainProjectUITests ( ) ,
133+ ] ) )
134+ }
135+
136+ @Test
137+ func projectTargetDependencyChange_turbo( ) async throws {
138+ // given
139+ let testTool = try IntegrationTestTool ( )
140+ defer { try ? testTool. tearDown ( ) }
141+
142+ let tool = try testTool. createSUT ( config: nil ,
143+ basePath: " ExampleProject.xcodeproj " ,
144+ turbo: true )
145+
146+ // when
147+ try testTool. changeFile ( at: testTool. projectPath + " ExmapleTargetLibrary/ExampleTargetLibrary.swift " )
148+
149+ // then
150+ let result = try await tool. run ( )
151+ #expect( result == Set ( [
152+ testTool. mainProjectLibrary ( ) ,
153+ testTool. mainProjectMainTarget ( ) ,
154+ testTool. mainProjectLibraryTests ( ) ,
129155 ] ) )
130156 }
131157
0 commit comments