Skip to content

Commit 497944d

Browse files
authored
Add experimental max parallelization width option for Swift Testing. (swiftlang#9361)
Adds `swift test --experimental-maximum-parallelization-width`. This flag passes through to Swift Testing. We may end up just reusing `--num-workers` but as it's not exactly the same feature, I'm keeping it separate for now pending discussion and review.
1 parent 2aa8df4 commit 497944d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Commands/SwiftTestCommand.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ struct TestCommandOptions: ParsableArguments {
162162
help: "Number of tests to execute in parallel.")
163163
var numberOfWorkers: Int?
164164

165+
/// Width of task group used by Swift Testing.
166+
///
167+
/// This argument is consumed by Swift Testing and is passed through verbatim by SwiftPM.
168+
@Option(help: .hidden)
169+
var experimentalMaximumParallelizationWidth: Int? = nil
170+
165171
/// List the tests and exit.
166172
@Flag(name: [.customLong("list-tests"), .customShort("l")],
167173
help: "Lists test methods in specifier format.")

0 commit comments

Comments
 (0)