run_e2e_test
Run an E2E test scenario in Play Mode. Executes a sequence of steps: input simulation, assertions, waits, and screenshots.
分類: テスト
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
name |
string | 必須 | Test name for reporting | |
steps |
array | 必須 | Ordered list of test steps | |
auto_enter_playmode |
boolean | true |
Automatically enter Play Mode before test (default: true) | |
auto_exit_playmode |
boolean | true |
Automatically exit Play Mode after test (default: true) | |
screenshot_on_failure |
boolean | true |
Automatically capture screenshot on test failure (default: true) | |
timeout |
number | 60 |
Overall test timeout in seconds (default: 60) |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "run_e2e_test", "arguments": { "name": "…", "steps": [] }}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "run_e2e_test", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/Testing/RunE2eTestTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。