run_tests
Run Unity Editor tests in specified mode and filter, reporting only failures or including logs.
Instructions
Runs Unity's Test Runner tests
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_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testMode | No | The test mode to run (EditMode or PlayMode) - defaults to EditMode (optional) | EditMode |
| testFilter | No | The specific test filter to run (e.g. specific test name or class name, must include namespace) (optional) | |
| returnWithLogs | No | Whether to return the test logs in the results (optional) | |
| returnOnlyFailures | No | Whether to show only failed tests in the results (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Human-readable summary or error | |
| results | No | Per-test results | |
| success | No | Whether the test run completed | |
| failCount | No | Number of failing tests | |
| passCount | No | Number of passing tests | |
| skipCount | No | Number of skipped tests | |
| testCount | No | Total tests executed |