---
title: "Suite(_:_:)"
framework: testing
role: symbol
role_heading: Macro
path: "testing/suite(_:_:)"
---

# Suite(_:_:)

Declare a test suite.

## Declaration

```swift
@attached(peer) macro Suite(_ displayName: String? = nil, _ traits: any SuiteTrait...)
```

## Parameters

- `displayName`: The customized display name of this test suite. If the value of this argument is nil, the display name of the test is derived from the associated type’s name.
- `traits`: Zero or more traits to apply to this test suite.

## Overview

Overview A test suite is a type that contains one or more test functions. Any type may be a test suite. The use of the @Suite attribute is optional; types are recognized as test suites even if they do not have the @Suite attribute applied to them. When adding test functions to a type extension, do not use the @Suite attribute. Only a type’s primary declaration may have the @Suite attribute applied to it.

## See Also

### Related Documentation

- [Organizing test functions with suite types](testing/organizingtests.md)

### Essentials

- [Defining test functions](testing/definingtests.md)
- [Organizing test functions with suite types](testing/organizingtests.md)
- [Migrating a test from XCTest](testing/migratingfromxctest.md)
- [Test(_:_:)](testing/test(_:_:).md)
- [Test](testing/test.md)
