File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ open class XCTest {
52
52
perform ( testRun!)
53
53
}
54
54
55
+ /// Async setup method called before the invocation of `setUpWithError` for each test method in the class.
56
+ #if !os(Windows)
57
+ @available ( macOS 12 . 0 , * )
58
+ open func setUp( ) async throws { }
59
+ #endif
55
60
/// Setup method called before the invocation of `setUp` and the test method
56
61
/// for each test method in the class.
57
62
open func setUpWithError( ) throws { }
@@ -68,6 +73,12 @@ open class XCTest {
68
73
/// for each test method in the class.
69
74
open func tearDownWithError( ) throws { }
70
75
76
+ /// Async teardown method which is called after the invocation of `tearDownWithError`
77
+ /// for each test method in the class.
78
+ #if !os(Windows)
79
+ @available ( macOS 12 . 0 , * )
80
+ open func tearDown( ) async throws { }
81
+ #endif
71
82
// FIXME: This initializer is required due to a Swift compiler bug on Linux.
72
83
// It should be removed once the bug is fixed.
73
84
public init ( ) { }
You can’t perform that action at this time.
0 commit comments