---
title: XCTestCaseRun
framework: xctest
role: symbol
role_heading: Class
path: xctest/xctestcaserun
---

# XCTestCaseRun

An object that collects information about a specific execution of a test case.

## Declaration

```swift
class XCTestCaseRun
```

## Overview

Overview The test runner manages the creation and tracking of XCTestCaseRun for each XCTestCase in an XCTestSuite.

## Topics

### Deprecated

- [recordFailure(inTest:withDescription:inFile:atLine:expected:)](xctest/xctestcaserun/recordfailure(intest:withdescription:infile:atline:expected:).md)

## Relationships

### Inherits From

- [XCTestRun](xctest/xctestrun.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Test Runs

- [XCTestSuiteRun](xctest/xctestsuiterun.md)
- [XCTestRun](xctest/xctestrun.md)
