run_unity_tests
Runs Unity Test Framework tests in Edit, Play, or both modes using name, category, group, or assembly filters; returns persisted results and per-test failures.
Instructions
Run Unity Test Framework tests in Edit Mode, Play Mode, or both. Supports exact test names, regex group names, categories, and assembly filters. Results are persisted across Play Mode domain reloads and include bounded per-test failures and output. Test failures are reported with testsPassed=false; they do not make a completed runner operation fail. Requires com.unity.test-framework and a running Unity Editor with BanterMCPBridge installed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_unity_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Test mode to execute | edit |
| testNames | No | Optional exact full test names | |
| timeoutMs | No | How long this MCP call waits; the run remains queryable if still active | |
| groupNames | No | Optional Unity Test Framework group-name regex filters | |
| maxResults | No | Maximum individual test-case results to retain | |
| assemblyNames | No | Optional test assembly names without .dll | |
| categoryNames | No | Optional NUnit category filters |