---
title: "test(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/test(with:completion:)"
---

# test(with:completion:)

## Declaration

```swift
func test(with params: MTRUnitTestingClusterTestParams?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func test(with params: MTRUnitTestingClusterTestParams?) async throws
```
