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

# SuiteTrait

A protocol describing a trait that you can add to a test suite.

```
protocol SuiteTrait : Trait
```

## Overview

The testing library defines a number of traits that you can add to test
suites. You can also define your own traits by creating types that
conform to this protocol, or to the [`TestTrait`](/documentation/Testing/TestTrait) protocol.

## Relationships

### Inherits From

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Trait`](/documentation/Testing/Trait)

### Conforming Types

[`List`](/documentation/Testing/Tag/List)

[`TimeLimitTrait`](/documentation/Testing/TimeLimitTrait)

[`IssueHandlingTrait`](/documentation/Testing/IssueHandlingTrait)

[`Bug`](/documentation/Testing/Bug)

[`Comment`](/documentation/Testing/Comment)

[`ConditionTrait`](/documentation/Testing/ConditionTrait)

[`ParallelizationTrait`](/documentation/Testing/ParallelizationTrait)

---

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)