Skip to content

Commit 8879598

Browse files
committed
update to new testing syntax
1 parent 8dd9fe8 commit 8879598

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Fixtures/SwiftTesting/SingleTarget/Tests/Foo/Test.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ class SimpleGetTests: XCTestCase {
88
}
99
}
1010

11-
#if os(Linux)
12-
extension SimpleGetTests: XCTestCaseProvider {
13-
var allTests : [(String, () throws -> Void)] {
11+
extension SimpleGetTests {
12+
static var allTests : [(String, SimpleGetTests -> () throws -> Void)] {
1413
return [
1514
("testGetRequestStatusCode", testGetRequestStatusCode),
1615
]
1716
}
1817
}
19-
#endif

Fixtures/SwiftTesting/SingleTarget/Tests/LinuxMain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import XCTest
33
@testable import Footest
44

55
XCTMain([
6-
SimpleGetTests(),
6+
testCase(SimpleGetTests.allTests),
77
])

0 commit comments

Comments
 (0)