We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28340aa commit f9b9089Copy full SHA for f9b9089
XCTest/XCTAssert.swift
@@ -14,6 +14,11 @@
14
/// are implemented in terms of this. This function emits a test failure if the
15
/// general Bool expression passed to it evaluates to false.
16
///
17
+/// - Requires: This and all other XCTAssert* functions must be called from
18
+/// within a test method, as indicated by `XCTestCaseProvider.allTests`.
19
+/// Assertion failures that occur outside of a test method will *not* be
20
+/// reported as failures.
21
+///
22
/// - Parameter expression: A boolean test. If it evaluates to false, the
23
/// assertion fails and emits a test failure.
24
/// - Parameter message: An optional message to use in the failure if the
0 commit comments