Skip to content

run_tests

Run Unity Test Framework tests. Supports EditMode and PlayMode tests with filtering options.

Category: Test

Name Type Required Default Description
test_mode string "Both" Test mode to run. One of: 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)

The arguments below are the required ones; add the optional ones you need.

{
"name": "run_tests",
"arguments": {}
}

When Unity runs with NANORA_MCP_SUPERSAVE=1, call it through the execute meta tool: {"tool": "run_tests", "args": { … }}. See SuperSave mode.

Generated from Assets/NanoraUnityMCP/Editor/Tools/RunTestsTool.cs (version 1.2.1). The client receives the same schema from tools/list.