Skip to content

Commit 2c673fa

Browse files
committed
Merge pull request #98 from mike-ferris-apple/Swift3Renaming
Update APIs to match some tweaking for Swift3 in Xcode's XCTest.
2 parents 6a02a0b + dd539d5 commit 2c673fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/XCTest/XCTestSuite.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class XCTestSuite: XCTest {
6565
setUp()
6666
for test in tests {
6767
test.run()
68-
testRun.addTest(test.testRun!)
68+
testRun.addTestRun(test.testRun!)
6969
}
7070
tearDown()
7171
run.stop()
@@ -80,4 +80,4 @@ public class XCTestSuite: XCTest {
8080
public func addTest(_ test: XCTest) {
8181
tests.append(test)
8282
}
83-
}
83+
}

Sources/XCTest/XCTestSuiteRun.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class XCTestSuiteRun: XCTestRun {
5757

5858
/// Add a test run to the collection of `testRuns`.
5959
/// - Note: It is rare to call this method outside of XCTest itself.
60-
public func addTest(_ testRun: XCTestRun) {
60+
public func addTestRun(_ testRun: XCTestRun) {
6161
testRuns.append(testRun)
6262
}
6363

0 commit comments

Comments
 (0)