---
title: "addTest(_:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctestsuite/addtest(_:)"
---

# addTest(_:)

Adds a test to the test suite.

## Declaration

```swift
func addTest(_ test: XCTest)
```

## See Also

### Managing Tests

- [tests](xctest/xctestsuite/tests.md)
