<!--
{
  "availability" : [
    "Swift: 6.3.0 -",
    "Xcode: 26.4.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "swift: 6.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/Issue/isFailure",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift Testing"
    ],
    "preciseIdentifier" : "s:7Testing5IssueV9isFailureSbvp"
  },
  "title" : "isFailure"
}
-->

# isFailure

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

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

## Discussion

The value of this property is `true` for issues which have a severity level of
[`Issue.Severity.error`](/documentation/Testing/Issue/Severity-swift.enum/error) or greater and are not known issues via
[`withKnownIssue(_:isIntermittent:sourceLocation:_:when:matching:)`](/documentation/Testing/withKnownIssue(_:isIntermittent:sourceLocation:_:when:matching:)).
Otherwise, the value of this property is `false.`

Use this property to determine if an issue should be considered a failure, instead of
directly comparing the value of the [`severity`](/documentation/Testing/Issue/severity-swift.property) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)