Skip to content

Commit 411947a

Browse files
committed
address lint warnings
1 parent 3f1991e commit 411947a

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Foundation
22

33
public extension XCScheme {
4-
/// 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.
5-
enum TestParallelization: String {
6-
case all
7-
case swiftTestingOnly
8-
case none
9-
}
4+
/// 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.
5+
enum TestParallelization: String {
6+
case all
7+
case swiftTestingOnly
8+
case none
9+
}
1010
}

Sources/XcodeProj/Scheme/XCScheme+TestableReference.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public extension XCScheme {
1111
get { parallelization == .swiftTestingOnly }
1212
set { parallelization = newValue ? .swiftTestingOnly : .none }
1313
}
14+
1415
public var parallelization: TestParallelization
1516
public var randomExecutionOrdering: Bool
1617
public var useTestSelectionWhitelist: Bool?
@@ -60,7 +61,7 @@ public extension XCScheme {
6061

6162
init(element: AEXMLElement) throws {
6263
skipped = element.attributes["skipped"] == "YES"
63-
64+
6465
if let parallelizableValue = element.attributes["parallelizable"] {
6566
parallelization = parallelizableValue == "YES" ? .all : .none
6667
} else {
@@ -93,7 +94,7 @@ public extension XCScheme {
9394

9495
func xmlElement() -> AEXMLElement {
9596
var attributes: [String: String] = ["skipped": skipped.xmlString]
96-
97+
9798
switch parallelization {
9899
case .all:
99100
attributes["parallelizable"] = "YES"

Tests/XcodeProjTests/Scheme/XCSchemeTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ final class XCSchemeIntegrationTests: XCTestCase {
172172
XCTAssertEqual(subject.attributes["useTestSelectionWhitelist"], "YES")
173173
XCTAssertEqual(subject.attributes["testExecutionOrdering"], "random")
174174
}
175-
175+
176176
func test_computed_parallelizable_testableReference_false() {
177177
let reference = XCScheme.TestableReference(
178178
skipped: false,
@@ -192,7 +192,7 @@ final class XCSchemeIntegrationTests: XCTestCase {
192192
XCTAssertEqual(reference.parallelizable, false)
193193
XCTAssertEqual(reference.parallelization, .none)
194194
}
195-
195+
196196
func test_computed_parallelizable_testableReference_true() {
197197
let reference = XCScheme.TestableReference(
198198
skipped: false,
@@ -212,7 +212,7 @@ final class XCSchemeIntegrationTests: XCTestCase {
212212
XCTAssertEqual(reference.parallelizable, true)
213213
XCTAssertEqual(reference.parallelization, .swiftTestingOnly)
214214
}
215-
215+
216216
func test_write_testableReferenceSelectedTests() {
217217
// Given
218218
let reference = XCScheme.TestableReference(

0 commit comments

Comments
 (0)