testCase(_:didFailWithDescription:inFile:atLine:)
Notifies the observer when a test case reports a failure.
Declaration
optional func testCase(_ testCase: XCTestCase, didFailWithDescription description: String, inFile filePath: String?, atLine lineNumber: Int)Parameters
- testCase:
The test case that reported a failure. Additional information about the test case can be retrieved from the test case’s associated Xctestrun.
- description:
A textual description of the failure.
- filePath:
The path to the file in the failure occurred, or
nilif the file path is unknown. - lineNumber:
The line number on which the failure was reported.