---
title: isFailure
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctissuereference/isfailure
---

# isFailure

Whether or not this issue should cause the test it’s associated with to be considered a failure.

## Declaration

```swift
var isFailure: Bool { get }
```

## Discussion

Discussion The value of this property is YES for issues which have a severity level of XCTIssueSeverityError or higher. Otherwise, the value of this property is NO. Use this property to determine if an issue should be considered a failure, instead of directly comparing the value of the severity property.
