---
title: ExitTest
framework: testing
role: symbol
role_heading: Structure
path: testing/exittest
---

# ExitTest

A type describing an exit test.

## Declaration

```swift
struct ExitTest
```

## Overview

Overview Instances of this type describe exit tests you create using the expect(processExitsWith:observing:_:sourceLocation:performing:) or require(processExitsWith:observing:_:sourceLocation:performing:) macro. You don’t usually need to interact directly with an instance of this type.

## Topics

### Structures

- [ExitTest.Condition](testing/exittest/condition.md)
- [ExitTest.Result](testing/exittest/result.md)

### Type Properties

- [current](testing/exittest/current.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Checking how processes exit

- [Exit testing](testing/exit-testing.md)
- [expect(processExitsWith:observing:_:sourceLocation:performing:)](testing/expect(processexitswith:observing:_:sourcelocation:performing:).md)
- [require(processExitsWith:observing:_:sourceLocation:performing:)](testing/require(processexitswith:observing:_:sourcelocation:performing:).md)
- [ExitStatus](testing/exitstatus.md)
