Run the unit tests
godot_testExecute project tests using GUT or GdUnit4 in Godot 4.7 headless mode. Identify failing tests and script errors after code changes to ensure stability.
Instructions
Run the project's GUT or GdUnit4 tests in Godot 4.7 headless and return only the totals and the failing tests, each with res://file:line and the failure message, plus script errors from the run. Use it after a change to see whether the tests still pass. Needs Godot on this machine and GUT (res://addons/gut) or GdUnit4 (res://addons/gdUnit4) in the project. framework picks one when both are installed; dirs chooses the test folders or scripts (default: the framework's config, else res://test and res://tests); filter runs only matching GUT tests. An error result when a test fails, or when Godot or a framework is missing. Test files are not changed; reports go to a temporary folder or .godot/godotwright/. To try input without writing tests use godot_play; for load errors only use godot_check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dirs | No | test folders or scripts as res:// paths (default: the framework's config, else res://test and res://tests) | |
| path | No | The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project. | |
| filter | No | GUT only: run only tests whose name contains this text | |
| framework | No | which framework (default: whichever is installed) | |
| timeout_seconds | No | timeout of the run (default 600) |