recordFailure(withDescription:inFile:atLine:expected:)
Records a failure during text execution.
Declaration
func recordFailure(withDescription description: String, inFile filePath: String, atLine lineNumber: Int, expected: Bool)Parameters
- description:
A description of the failure.
- filePath:
The file path to the source file where the failure occurred.
- lineNumber:
The line number in the source file at
filePathwhere the failure occurred. - expected:
True if the failure was the result of a failed assertion, False if it was the result of an uncaught exception.
Discussion
All test assertions use this method to record test failures.