---
title: stop()
framework: xctest
role: symbol
role_heading: Instance Method
path: xctest/xctestrun/stop()
---

# stop()

Stops a test run.

## Declaration

```swift
func stop()
```

## Discussion

Discussion This method must not be called unless the run has been started, and must not be called more than once.

## See Also

### Performing Test Runs

- [start()](xctest/xctestrun/start().md)
- [record(_:)](xctest/xctestrun/record(_:).md)
