<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTIssueReference/IssueType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@E@XCTIssueType"
  },
  "title" : "XCTIssueReference.IssueType"
}
-->

# XCTIssueReference.IssueType

Constants that indicate types of test failures, such as assertion failures, performance regressions, or thrown errors.

```
enum IssueType
```

## Topics

### Issue Types

[`case assertionFailure`](/documentation/XCTest/XCTIssueReference/IssueType/assertionFailure)

A test failure due to a failed test assertion or related API.

[`case performanceRegression`](/documentation/XCTest/XCTIssueReference/IssueType/performanceRegression)

A test failure due to a performance regression.

[`case system`](/documentation/XCTest/XCTIssueReference/IssueType/system)

A test failure due to an internal failure in the testing framework.

[`case thrownError`](/documentation/XCTest/XCTIssueReference/IssueType/thrownError)

A test failure when the test throws an error in Swift.

[`case uncaughtException`](/documentation/XCTest/XCTIssueReference/IssueType/uncaughtException)

A test failure when code throws an exception and doesn’t catch it.

[`case unmatchedExpectedFailure`](/documentation/XCTest/XCTIssueReference/IssueType/unmatchedExpectedFailure)

A test failure due to an expected test failure that doesn’t occur.

### Initializers

[`init?(rawValue: Int)`](/documentation/XCTest/XCTIssueReference/IssueType/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

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)