---
title: expectationDescription
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctestexpectation/expectationdescription
---

# expectationDescription

A human readable string used to describe the expectation in log output and test reports.

## Declaration

```swift
var expectationDescription: String { get set }
```

## See Also

### Creating Expectations

- [init(description:)](xctest/xctestexpectation/init(description:).md)
