<!--
{
  "availability" : [
    "Xcode: 16.0.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "swift: 6.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/CustomTestStringConvertible/testDescription-3ar66",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift Testing",
      "Testing"
    ],
    "preciseIdentifier" : "s:7Testing27CustomTestStringConvertiblePAASyRzrlE15testDescriptionSSvp"
  },
  "title" : "testDescription"
}
-->

# testDescription

A description of this instance to use when presenting it in a test’s
output.

```
var testDescription: String { get }
```

## Discussion

Do not use this property directly. To get the test description of a value,
use `Swift/String/init(describingForTest:)`.

---

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)