Skip to content

Commit e916cce

Browse files
committed
Mark tests' allTests props as override
1 parent 5436c62 commit e916cce

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
@@ -27,7 +27,7 @@
2727
#endif
2828

2929
class ErrorHandling: XCTestCase {
30-
var allTests: [(String, () throws -> ())] {
30+
override var allTests: [(String, () throws -> ())] {
3131
return [
3232
// Tests for XCTAssertThrowsError
3333
("test_shouldButDoesNotThrowErrorInAssertion", test_shouldButDoesNotThrowErrorInAssertion),

Tests/Functional/FailingTestSuite/main.swift

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

2424
class PassingTestCase: XCTestCase {
25-
var allTests: [(String, () throws -> ())] {
25+
override var allTests: [(String, () throws -> ())] {
2626
return [
2727
("test_passes", test_passes),
2828
]
@@ -34,7 +34,7 @@ class PassingTestCase: XCTestCase {
3434
}
3535

3636
class FailingTestCase: XCTestCase {
37-
var allTests: [(String, () throws -> ())] {
37+
override var allTests: [(String, () throws -> ())] {
3838
return [
3939
("test_passes", test_passes),
4040
("test_fails", test_fails),

Tests/Functional/NegativeAccuracyTestCase/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

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

Tests/Functional/SetUpTearDownTestCase/main.swift

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

1818
class SetUpTearDownTestCase: XCTestCase {
19-
var allTests: [(String, () throws -> Void)] {
19+
override var allTests: [(String, () throws -> Void)] {
2020
return [
2121
("test_hasValueFromSetUp", test_hasValueFromSetUp),
2222
]

Tests/Functional/SingleFailingTestCase/main.swift

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

1616
class SingleFailingTestCase: XCTestCase {
17-
var allTests: [(String, () throws -> ())] {
17+
override var allTests: [(String, () throws -> ())] {
1818
return [
1919
("test_fails", test_fails),
2020
]

0 commit comments

Comments
 (0)