Structure

XCTestError

No overview available.

Declaration

struct XCTestError

Topics

Error Codes

static var timeoutWhileWaiting: XCTestError.Code

A wait timeout expired before all expectations were fulfilled.

static var failureWhileWaiting: XCTestError.Code

A test failure occurred while waiting for expectations to be fulfilled.

enum XCTestError.Code

Error codes for errors that can occur while waiting for expectations to be fulfilled.

Error Domain

static var errorDomain: String

Error domain for errors that can occur while waiting for expectations to be fulfilled.

let XCTestErrorDomain: String

Error domain for errors that can occur while waiting for expectations to be fulfilled.

Operator Functions

static func != (XCTestError, XCTestError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also

Waiting for Expectations

func wait(for: [XCTestExpectation], timeout: TimeInterval)

Waits on a group of expectations for up to the specified timeout.

func wait(for: [XCTestExpectation], timeout: TimeInterval, enforceOrder: Bool)

Waits on an array of expectations and specifies whether they must be fulfilled in the given order.

func waitForExpectations(timeout: TimeInterval, handler: XCWaitCompletionHandler?)

Waits until all expectations are fulfilled or the timeout is reached.

typealias XCWaitCompletionHandler

A block to be called when a call to waitForExpectations(timeout:handler:) has all of its expectations fulfilled, or times out.