run_tests
Run Unity Test Framework tests. Supports EditMode and PlayMode tests with filtering options.
分類: テスト
| 名前 | 型 | 必須 | 既定値 | 説明 |
|---|---|---|---|---|
test_mode |
string | "Both" |
Test mode to run. 値: EditMode, PlayMode, Both |
|
filter |
string | "" |
Filter tests by name (supports wildcards) | |
category |
string | "" |
Filter tests by category | |
assembly_filter |
string | "" |
Filter by assembly name | |
run_synchronously |
boolean | true |
Wait for tests to complete before returning | |
timeout_seconds |
integer | 300 |
Maximum time to wait for tests (sync mode only) |
呼び出しの例
Section titled “呼び出しの例”必須の引数だけを入れています。ほかは必要に応じて足してください。
{ "name": "run_tests", "arguments": {}}SuperSave モードでは
Section titled “SuperSave モードでは”Unity を NANORA_MCP_SUPERSAVE=1 で起動したときは、メタツール execute から {"tool": "run_tests", "args": { … }} の形で呼びます。SuperSave モードを参照。
Assets/NanoraUnityMCP/Editor/Tools/RunTestsTool.cs(版 1.2.1)から生成しています。説明文はツール定義のまま(英語)です。AI クライアントは tools/list で同じスキーマを受け取ります。