Functions
The following functions are available globally.
-
A way to get either the current QuickSpec or AsyncSpec, whichever is relevant to the given context This is intended to be used inside of
beforeSuite
orafterSuite
closures, in order to accessXCTestCase
APIs (e.g.expectation(description:)
orwaitForExpectations()
)This does not work with standard XCTest APIs - this does not provide the currently executing
XCTestCase
instance for tests defined usingXCTest
.Declaration
Swift
public func currentSpec() -> XCTestCase?