Files
tidewall/tools/run_tests.sh
T
claudeandClaude Opus 5.5 dee417df3d F4: Headless test harness
Add an in-repo test runner that discovers test/**/test_*.gd and runs under --headless.
It uses Godot's Logger API, so engine and script errors during a test fail that test.
make test runs the suite, and make test-selfcheck runs deliberately failing fixtures
to prove each kind of failure is detected.

Closes #4

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 17:12:59 -05:00

9 lines
391 B
Bash
Executable File

#!/usr/bin/env bash
# Runs the headless test suite. Extra arguments are passed to the runner, for
# example: tools/run_tests.sh --root=res://test/sim
set -uo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
# A hang in a test must fail the run, not block it forever.
exec timeout --signal=KILL "${TIDEWALL_TEST_TIMEOUT:-900}" \
tools/godot.sh --script res://test/framework/runner.gd -- "$@"