---
title: "tags(_:)"
framework: testing
role: symbol
role_heading: Type Method
path: "testing/trait/tags(_:)"
---

# tags(_:)

Construct a list of tags to apply to a test.

## Declaration

```swift
static func tags(_ tags: Tag...) -> Self
```

## Parameters

- `tags`: The list of tags to apply to the test.

## Mentioned in

Organizing test functions with suite types Adding tags to tests Defining test functions

## Return Value

Return Value An instance of Tag.List containing the specified tags.

## See Also

### Categorizing tests and adding information

- [comments](testing/trait/comments.md)
