@@ -18,6 +18,7 @@ public final class SelectiveTestingTool {
1818 private let changedFiles : [ String ]
1919 private let renderDependencyGraph : Bool
2020 private let turbo : Bool
21+ private let dryRun : Bool
2122 private let dot : Bool
2223 private let verbose : Bool
2324 private let testPlan : String ?
@@ -31,6 +32,7 @@ public final class SelectiveTestingTool {
3132 renderDependencyGraph: Bool = false ,
3233 dot: Bool = false ,
3334 turbo: Bool = false ,
35+ dryRun: Bool = false ,
3436 verbose: Bool = false ) throws
3537 {
3638 if let configData = try ? ( Path . current + Config. defaultConfigName) . read ( ) ,
@@ -53,6 +55,7 @@ public final class SelectiveTestingTool {
5355 self . renderDependencyGraph = renderDependencyGraph
5456 self . turbo = turbo
5557 self . dot = dot
58+ self . dryRun = dryRun
5659 self . verbose = verbose
5760 self . testPlan = testPlan ?? config? . testPlan
5861 }
@@ -127,11 +130,11 @@ public final class SelectiveTestingTool {
127130 }
128131 }
129132
130- if let testPlan {
133+ if !dryRun , let testPlan {
131134 // 4. Configure workspace to test given targets
132135 try enableTests ( at: Path ( testPlan) ,
133136 targetsToTest: affectedTargets)
134- } else if let testPlan = workspaceInfo. candidateTestPlan {
137+ } else if !dryRun , let testPlan = workspaceInfo. candidateTestPlan {
135138 try enableTests ( at: Path ( testPlan) ,
136139 targetsToTest: affectedTargets)
137140 } else if !printJSON {
0 commit comments