<!--
{
  "availability" : [

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

# testSuiteDidFinish(_:)

Notifies the observer immediately after a test suite finishes executing.

```
optional func testSuiteDidFinish(_ testSuite: XCTestSuite)
```

## Parameters

`testSuite`

The test suite that finished executing. Additional information about the suite can be retrieved from the test suite’s associated [`XCTestRun`](/documentation/XCTest/XCTestRun).

## 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)