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>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Tidewall build entry points. Everything runs headless with the repo-local engine.
|
||||
GODOT := tools/godot.sh
|
||||
|
||||
.PHONY: check import parse binaries verify-engine
|
||||
.PHONY: check import parse test test-selfcheck binaries verify-engine
|
||||
|
||||
## Everything that must pass before a push.
|
||||
check: verify-engine binaries parse
|
||||
check: verify-engine binaries parse test test-selfcheck
|
||||
|
||||
verify-engine:
|
||||
@$(GODOT) --verify
|
||||
@@ -18,3 +18,10 @@ import:
|
||||
|
||||
parse: import
|
||||
@$(GODOT) --script res://tools/parse_all.gd
|
||||
|
||||
test: import
|
||||
@tools/run_tests.sh
|
||||
|
||||
## Proves the test runner detects each kind of failure.
|
||||
test-selfcheck: import
|
||||
@tools/test_selfcheck.sh
|
||||
|
||||
Reference in New Issue
Block a user