Skip to content

Commit 760b98b

Browse files
committed
Add explicit XCTestCaseType conformance to test cases
XCTestCaseProvider->XCTestCaseType for tests
1 parent cb48cc7 commit 760b98b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Tests/Functional/ErrorHandling/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import SwiftXCTest
2727
#endif
2828

29-
class ErrorHandling: XCTestCase {
29+
class ErrorHandling: XCTestCase, XCTestCaseType {
3030
var allTests: [(String, () throws -> ())] {
3131
return [
3232
// Tests for XCTAssertThrowsError

Tests/Functional/FailingTestSuite/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import SwiftXCTest
2222
#endif
2323

24-
class PassingTestCase: XCTestCase {
24+
class PassingTestCase: XCTestCase, XCTestCaseType {
2525
var allTests: [(String, () throws -> ())] {
2626
return [
2727
("test_passes", test_passes),
@@ -33,7 +33,7 @@ class PassingTestCase: XCTestCase {
3333
}
3434
}
3535

36-
class FailingTestCase: XCTestCase {
36+
class FailingTestCase: XCTestCase, XCTestCaseType {
3737
var allTests: [(String, () throws -> ())] {
3838
return [
3939
("test_passes", test_passes),

Tests/Functional/NegativeAccuracyTestCase/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#endif
2222

2323
// Regression test for https://github.com/apple/swift-corelibs-xctest/pull/7
24-
class NegativeAccuracyTestCase: XCTestCase {
24+
class NegativeAccuracyTestCase: XCTestCase, XCTestCaseType {
2525
var allTests: [(String, () throws -> ())] {
2626
return [
2727
("test_equalWithAccuracy_passes", test_equalWithAccuracy_passes),

Tests/Functional/SetUpTearDownTestCase/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import SwiftXCTest
1616
#endif
1717

18-
class SetUpTearDownTestCase: XCTestCase {
18+
class SetUpTearDownTestCase: XCTestCase, XCTestCaseType {
1919
var allTests: [(String, () throws -> Void)] {
2020
return [
2121
("test_hasValueFromSetUp", test_hasValueFromSetUp),

Tests/Functional/SingleFailingTestCase/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import SwiftXCTest
1414
#endif
1515

16-
class SingleFailingTestCase: XCTestCase {
16+
class SingleFailingTestCase: XCTestCase, XCTestCaseType {
1717
var allTests: [(String, () throws -> ())] {
1818
return [
1919
("test_fails", test_fails),

0 commit comments

Comments
 (0)