Failing Unconditionally

Generate a failure immediately and unconditionally.


Failing Unconditionally

func XCTFail(String, file: StaticString, line: UInt)

Generates a failure immediately and unconditionally.

See Also

Test Assertions

Boolean Assertions

Test a condition that generates a true or false result.

Nil and Non-nil Assertions

Check whether a test condition is nil or non-nil.

Equality and Inequality Assertions

Check whether two values are equal or unequal.

Comparable Value Assertions

Compare two values to determine whether one is larger or smaller than the other.

Error Assertions

Check whether a function call throws (or does not throw) an error.