Back to Quick

Functions

docs/docsets/Quick.docset/Contents/Resources/Documents/Functions.html

7.6.2843 B
Original Source

Functions

The following functions are available globally.

`

                currentSpec()
                `

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 or afterSuite closures, in order to access XCTestCase APIs (e.g. expectation(description:) or waitForExpectations())

This does not work with standard XCTest APIs - this does not provide the currently executing XCTestCase instance for tests defined using XCTest.

Declaration

Swift

public func currentSpec() -> XCTestCase?

© 2025 Quick Contributors. All rights reserved. (Last updated: 2025-06-26)

Generated by jazzy ♪♫ v0.15.3, a Realm project.