---
title: run()
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: appintentstesting/anyappintent/run()
---

# run()

Performs the intent in the current test session.

## Declaration

```swift
@discardableResult func run() async throws -> ResolvedIntentResult
```

## Mentioned in

Testing your App Intents code

## Return Value

Return Value The resolved result that contains the intent’s return value.
