File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Sources/Commands/Utilities Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -212,11 +212,24 @@ extension SwiftTool {
212
212
library: BuildParameters . Testing . Library
213
213
) throws -> BuildParameters {
214
214
var parameters = try self . buildParameters ( )
215
+
216
+ var explicitlyEnabledDiscovery = false
217
+ var explicitlySpecifiedPath : AbsolutePath ?
218
+ if case let . entryPointExecutable(
219
+ explicitlyEnabledDiscoveryValue,
220
+ explicitlySpecifiedPathValue
221
+ ) = parameters. testingParameters. testProductStyle {
222
+ explicitlyEnabledDiscovery = explicitlyEnabledDiscoveryValue
223
+ explicitlySpecifiedPath = explicitlySpecifiedPathValue
224
+ }
215
225
parameters. testingParameters = . init(
216
226
configuration: parameters. configuration,
217
227
targetTriple: parameters. targetTriple,
228
+ forceTestDiscovery: explicitlyEnabledDiscovery,
229
+ testEntryPointPath: explicitlySpecifiedPath,
218
230
library: library
219
231
)
232
+
220
233
parameters. testingParameters. enableCodeCoverage = enableCodeCoverage
221
234
// for test commands, we normally enable building with testability
222
235
// but we let users override this with a flag
You can’t perform that action at this time.
0 commit comments