---
title: Tag()
framework: testing
role: symbol
role_heading: Macro
path: testing/tag()
---

# Tag()

Declare a tag that can be applied to a test function or test suite.

## Declaration

```swift
@attached(accessor) @attached(peer) macro Tag()
```

## Mentioned in

Adding tags to tests

## Overview

Overview Use this tag with members of the Tag type declared in an extension to mark them as usable with tests. For more information on declaring tags, see Adding tags to tests.

## See Also

### Annotating tests

- [Adding tags to tests](testing/addingtags.md)
- [Adding comments to tests](testing/addingcomments.md)
- [Associating bugs with tests](testing/associatingbugs.md)
- [Interpreting bug identifiers](testing/bugidentifiers.md)
- [bug(_:_:)](testing/trait/bug(_:_:).md)
- [bug(_:id:_:)](testing/trait/bug(_:id:_:)-10yf5.md)
- [bug(_:id:_:)](testing/trait/bug(_:id:_:)-3vtpl.md)
