---
title: hasSucceeded
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctestrun/hassucceeded
---

# hasSucceeded

A Boolean value that returns true if all tests in the run completed without recording any failures; otherwise, false.

## Declaration

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

## See Also

### Gathering Test Outcomes

- [hasBeenSkipped](xctest/xctestrun/hasbeenskipped.md)
- [executionCount](xctest/xctestrun/executioncount.md)
- [failureCount](xctest/xctestrun/failurecount.md)
- [skipCount](xctest/xctestrun/skipcount.md)
- [test](xctest/xctestrun/test.md)
- [testCaseCount](xctest/xctestrun/testcasecount.md)
- [totalFailureCount](xctest/xctestrun/totalfailurecount.md)
- [unexpectedExceptionCount](xctest/xctestrun/unexpectedexceptioncount.md)
