testing library
Run the registered App Intents / AppFunctions handlers under
flutter test, without a simulator or a native host.
See AppIntentsHarness. The manifest it optionally reads comes from
dart run app_intents_codegen:describe -o test/app_intents.json.
Classes
- AppIntentsHarness
-
Lists and runs the registered Dart handlers the way a native caller does,
under plain
flutter test. - AppIntentsInventory
- What AppIntentsHarness.list found.
- AppIntentsManifest
-
What
dart run app_intents_codegen:describedeclared: every intent, entity and enum, with a JSON Schema for each intent's params. - DeclaredEntity
-
One
@EntitySpecfrom the manifest. - DeclaredEnum
-
One
@EnumSpecfrom the manifest. - DeclaredIntent
-
One
@IntentSpecfrom the manifest. - HarnessProgress
- One progress report from a handler.
- HarnessRun
- An intent started with AppIntentsHarness.start.
Functions
Exceptions / Errors
- AppIntentsSchemaViolation
- Params or entities that do not match the manifest's schema.