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

# ExitTest.Condition

The possible conditions under which an exit test will complete.

## Declaration

```swift
struct Condition
```

## Mentioned in

Exit testing

## Overview

Overview Values of this type are used to describe the conditions under which an exit test is expected to pass or fail by passing them to expect(processExitsWith:observing:_:sourceLocation:performing:) or require(processExitsWith:observing:_:sourceLocation:performing:).

## Topics

### Successful exit conditions

- [success](testing/exittest/condition/success.md)

### Failing exit conditions

- [failure](testing/exittest/condition/failure.md)
- [exitCode(_:)](testing/exittest/condition/exitcode(_:).md)
- [signal(_:)](testing/exittest/condition/signal(_:).md)

### Initializers

- [init(_:)](testing/exittest/condition/init(_:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
