---
title: "addTestRun(_:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctestsuiterun/addtestrun(_:)"
---

# addTestRun(_:)

Adds a test run to the test suite.

## Declaration

```swift
func addTestRun(_ testRun: XCTestRun)
```

## Parameters

- `testRun`: A test run for the test suite to manage.

## See Also

### Managing Test Runs

- [testRuns](xctest/xctestsuiterun/testruns.md)
