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

# name

The name of this instance.

```
var name: String { get set }
```

## Discussion

The value of this property is equal to the name of the symbol to which the
[`Test`](/documentation/Testing/Test) attribute is applied (that is, the name of the type or function.)
To get the customized display name specified as part of the [`Test`](/documentation/Testing/Test)
attribute, use the [`displayName`](/documentation/Testing/Test/displayName) property.

---

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)