run_tests
Run Godot unit tests (GUT) headlessly, receiving a pass/fail summary and console output.
Instructions
Run GUT (Godot Unit Testing) tests via headless Godot. Requires GUT installed (addons/gut/). Returns pass/fail summary and console output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testDir | No | Test directory (relative to project or res:// path). Default: from .gutconfig.json or res://test. | |
| timeout | No | Maximum time in seconds to wait for tests to complete (default: 120). | |
| logLevel | No | GUT log verbosity: 0 (errors only) to 3 (everything). Default: GUT's default. | |
| configPath | No | Path to .gutconfig.json (relative to project or res:// path). Uses GUT defaults if omitted. | |
| testMethod | No | Specific test method to run (e.g., 'test_health_decreases'). Most useful with testScript. | |
| testScript | No | Specific test script to run (e.g., 'test_player.gd'). Omit to run all tests. | |
| projectPath | Yes | Path to the Godot project directory. | |
| includeSubdirs | No | Search subdirectories for test scripts (default: true). |