<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestSuiteRun/addTestRun(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTestSuiteRun(im)addTestRun:"
  },
  "title" : "addTestRun(_:)"
}
-->

# addTestRun(_:)

Adds a test run to the test suite.

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

## Parameters

`testRun`

A test run for the test suite to manage.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)