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:
@@ -0,0 +1,12 @@
|
||||
extends TestCase
|
||||
|
||||
|
||||
func test_engine_is_the_pinned_version() -> void:
|
||||
var info: Dictionary = Engine.get_version_info()
|
||||
assert_eq(info["major"], 4)
|
||||
assert_eq(info["minor"], 7)
|
||||
assert_eq(info["patch"], 2)
|
||||
|
||||
|
||||
func test_simulation_runs_at_thirty_hertz() -> void:
|
||||
assert_eq(ProjectSettings.get_setting("physics/common/physics_ticks_per_second"), 30)
|
||||
Reference in New Issue
Block a user