-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add handling for Swift Testing Only Parallelization (#871)
* add handling for swiftTestingOnly as introduced in Xcode 16 * delete dead links from References * fix formatting * more formatting * rename Parallelization to Parallelizable to adhere to xcode naming * rename Parallelization to Parallelizable to adhere to xcode naming * add init as deprecated, updated extension and removed redundant unit test * rename Parallelizable type to TestParallelization and make both types available in TestableReference with deprecation warning to maintain backwards caompatability * reintroduce parallelizable from xmlElement * fix tests using old type * use computed var to best handle backwards compat with updated tests * address lint warnings * Fix linting issues * Fix linting issue --------- Co-authored-by: Pedro <[email protected]>
- Loading branch information
1 parent
4e84f41
commit b907392
Showing
4 changed files
with
168 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Sources/XcodeProj/Scheme/XCScheme+TestParallelization.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Foundation | ||
|
||
public extension XCScheme { | ||
/// With the introduction of Swift Testing and Xcode 16, you can now choose to run your tests | ||
// in parallel across either the full suite of tests in a target with `.all`, just those created | ||
// under Swift Testing with `.swiftTestingOnly`, or run them serially with the `.none` option. | ||
enum TestParallelization: String { | ||
case all | ||
case swiftTestingOnly | ||
case none | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters