Run Tests Wait
run_tests_waitDispatch Unity test runs in EditMode or PlayMode and wait for the exact run to reach a terminal state. Handles timeouts and transport failures by returning snapshot data without marking the run complete.
Instructions
Dispatch tests and wait for the exact run to become terminal. Dispatches test run. No confirmation required.
Transport failures and domain reloads do not erase the last snapshot. A
caller timeout is observational only: it returns ``TIMEOUT`` with request,
run and snapshot data and never marks the Unity run complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Test runner mode: EditMode or PlayMode | EditMode |
| filter | No | NUnit filter expression (e.g. 'MyNamespace.MyTest') | |
| timeout | No | Max seconds to wait for completion (default 120) | |
| request_id | No | Caller-supplied idempotency ID | |
| poll_interval | No | Seconds between status polls (default 5) |