<!--
{
  "availability" : [
    "Swift: 6.2.0 -",
    "Xcode: 26.0.0 -",
    "macOS: -",
    "swift: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/ExitTest/current",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Swift Testing",
      "Testing"
    ],
    "preciseIdentifier" : "s:7Testing8ExitTestV7currentACSgvpZ"
  },
  "title" : "current"
}
-->

# current

The exit test that is running in the current process, if any.

```
static var current: ExitTest? { get }
```

## Discussion

If the current process was created to run an exit test, the value of this
property describes that exit test. If this process is the parent process
of an exit test, or if no exit test is currently running, the value of
this property is `nil`.

The value of this property is constant across all tasks in the current
process.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)