<!--
{
  "availability" : [
    "Mac Catalyst: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "AppIntentsTesting"
  },
  "title" : "App Intents Testing"
}
-->

# App Intents Testing

Test your app intents, entities, queries, and integration with system features like Siri or Spotlight.

## Overview

The <doc://com.apple.documentation/documentation/AppIntents> framework allows you to integrate your app with system features like Siri, Shortcuts, or Spotlight. Use App Intents Testing to run and test your app intents, entities, enums, and query logic out-of-process — the same way Siri or Shortcuts perform them. Additionally, with App Intents Testing you can create tests
that verify your app’s integration with system features like Siri or Spotlight. The framework provides type-erased APIs that let you reference intents by name, set their parameters, and run them without linking against your app target.

## Topics

### Essentials

[Testing your App Intents code](/documentation/AppIntentsTesting/testing-your-app-intents-code)

Evaluate intents, entities, and queries, and verify your integration with system features like Spotlight and Siri.

### Intents, entities, enums, and queries

[`struct IntentDefinitions`](/documentation/AppIntentsTesting/IntentDefinitions)

A collection of definitions that catalog your app’s intents, enums, entities, and queries.

### Intent and query result verification

[`struct ResolvedIntentResult`](/documentation/AppIntentsTesting/ResolvedIntentResult)

A type-safe result from performing an app intent.

[`struct ResolvedValueQueryResult`](/documentation/AppIntentsTesting/ResolvedValueQueryResult)

The result of an intent value query.

### Entity annotation testing

[`struct ViewAnnotation`](/documentation/AppIntentsTesting/ViewAnnotation)

The onscreen context you provide to the system by annotating a view with an app entity.

### Intermediate types

[`struct AnyAppIntent`](/documentation/AppIntentsTesting/AnyAppIntent)

A type-erased, intermediate representation of an app intent for testing purposes.

[`struct AnyAppEntity`](/documentation/AppIntentsTesting/AnyAppEntity)

A type-erased, intermediate representation of your app entity for testing purposes.

[`struct AnyEntityQuery`](/documentation/AppIntentsTesting/AnyEntityQuery)

A type-erased, intermediate representation of your entity query for testing purposes.

[`struct AnyAppEnum`](/documentation/AppIntentsTesting/AnyAppEnum)

A type-erased representation of an app enumeration that provides dynamic enumeration value access.

[`struct AnyTransientAppEntity`](/documentation/AppIntentsTesting/AnyTransientAppEntity)

A type-erased representation of a transient app entity that provides dynamic property access.

### Supporting types

[`protocol AppIntentTypeDefinition`](/documentation/AppIntentsTesting/AppIntentTypeDefinition)

A protocol that associates a definition type with its corresponding instance type.

[`struct DynamicPropertyPath`](/documentation/AppIntentsTesting/DynamicPropertyPath)

A type-safe, dynamic path to access nested intent values.

[`struct DynamicPropertyPathCollection`](/documentation/AppIntentsTesting/DynamicPropertyPathCollection)

Indexed result items from an intent value query.

[`struct IntentValuePropertiesCallable`](/documentation/AppIntentsTesting/IntentValuePropertiesCallable)

A callable wrapper that creates app intent instances from keyword arguments.

### Protocols

[`protocol AppEntityExpectationProviding`](/documentation/AppIntentsTesting/AppEntityExpectationProviding)

A value expectation that checks an app entity’s type and, optionally, its
identifier or property values.

[`protocol AppIntentExpectationProviding`](/documentation/AppIntentsTesting/AppIntentExpectationProviding)

A type that describes the app intent you expect, including its type and,
optionally, its parameter values and result.

[`protocol IntentValueExpectation`](/documentation/AppIntentsTesting/IntentValueExpectation)

A type that describes the value you expect for an intent parameter, an app
entity property, or an intent result.

[`protocol ResolvableAppEntityExpectation`](/documentation/AppIntentsTesting/ResolvableAppEntityExpectation)

An entity expectation that checks an app entity as the caller passed it,
before any query runs.

[`protocol ResolvableIntentValueExpectation`](/documentation/AppIntentsTesting/ResolvableIntentValueExpectation)

A value expectation that checks a value as the caller passed it, before any
query runs.

### Structures

[`struct AppEntityExpectation`](/documentation/AppIntentsTesting/AppEntityExpectation)

An expectation that checks an app entity’s type, its property values, and,
optionally, its instance identifier.

[`struct AppEntityIdentifierExpectation`](/documentation/AppIntentsTesting/AppEntityIdentifierExpectation)

An expectation that checks whether an app entity is a specific instance by
comparing its type and identifier.

[`struct AppIntentExpectation`](/documentation/AppIntentsTesting/AppIntentExpectation)

An expectation that checks an app intent’s parameters and, optionally, the
result the intent returns.

[`struct IntentValueExpectationCallable`](/documentation/AppIntentsTesting/IntentValueExpectationCallable)

A value that you call with labeled value expectations to create an
expectation on the corresponding parameters or properties.

[`struct PredicateExpectation`](/documentation/AppIntentsTesting/PredicateExpectation)

A value expectation that checks a value of any convertible type against a
predicate.

[`struct PrimitiveExpectation`](/documentation/AppIntentsTesting/PrimitiveExpectation)

A value expectation that checks whether a value is present or whether its
string content matches.

[`struct SkillDefinition`](/documentation/AppIntentsTesting/SkillDefinition)

A definition that identifies one of an app’s skills by the app’s bundle
identifier and the skill’s name.

---

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)