---
title: Tag
framework: testing
role: symbol
role_heading: Structure
path: testing/tag
---

# Tag

A type representing a tag that can be applied to a test.

## Declaration

```swift
struct Tag
```

## Mentioned in

Adding tags to tests

## Overview

Overview To apply tags to a test, use the tags(_:) function.

## Topics

### Structures

- [Tag.List](testing/tag/list.md)

## Relationships

### Conforms To

- [CodingKeyRepresentable](swift/codingkeyrepresentable.md)
- [Comparable](swift/comparable.md)
- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [Bug](testing/bug.md)
- [Comment](testing/comment.md)
- [ConditionTrait](testing/conditiontrait.md)
- [IssueHandlingTrait](testing/issuehandlingtrait.md)
- [ParallelizationTrait](testing/parallelizationtrait.md)
- [Tag.List](testing/tag/list.md)
- [TimeLimitTrait](testing/timelimittrait.md)
