---
title: "testSuite(_:didRecord:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctestobservation/testsuite(_:didrecord:)-3rk9k"
---

# testSuite(_:didRecord:)

Notifies the observer when a test suite reports an issue.

## Declaration

```swift
optional func testSuite(_ testSuite: XCTestSuite, didRecord issue: XCTIssue)
```

```swift
optional func testSuite(_ testSuite: XCTestSuite, didRecord issue: XCTIssueReference)
```

## Parameters

- `testSuite`: The test suite with the issue.
- `issue`: The issue to record.

## See Also

### Observation Methods

- [testBundleWillStart(_:)](xctest/xctestobservation/testbundlewillstart(_:).md)
- [testSuiteWillStart(_:)](xctest/xctestobservation/testsuitewillstart(_:).md)
- [testCaseWillStart(_:)](xctest/xctestobservation/testcasewillstart(_:).md)
- [testCase(_:didRecord:)](xctest/xctestobservation/testcase(_:didrecord:)-4cou6.md)
- [testCase(_:didRecord:)](xctest/xctestobservation/testcase(_:didrecord:)-8k955.md)
- [testCase(_:didFailWithDescription:inFile:atLine:)](xctest/xctestobservation/testcase(_:didfailwithdescription:infile:atline:).md)
- [testCaseDidFinish(_:)](xctest/xctestobservation/testcasedidfinish(_:).md)
- [testSuite(_:didRecord:)](xctest/xctestobservation/testsuite(_:didrecord:)-1xjkv.md)
- [testSuite(_:didFailWithDescription:inFile:atLine:)](xctest/xctestobservation/testsuite(_:didfailwithdescription:infile:atline:).md)
- [testSuiteDidFinish(_:)](xctest/xctestobservation/testsuitedidfinish(_:).md)
- [testBundleDidFinish(_:)](xctest/xctestobservation/testbundledidfinish(_:).md)
