feat: add Phase 1 model and 2D rink canvas
- isolate the legacy 3D test under prototype/3d_test - add typed Routine, RoutineSection, PathSegment and RinkDimensions resources - add headless model and canvas tests (103 assertions) - add CanvasTransform and RinkCanvas with pan, zoom and touch pinch - add whiteboard main scene and platform renderer overrides - document architecture decisions in docs/architecture.md
This commit is contained in:
parent
bd2f7aaf89
commit
b1e2bf5221
37 changed files with 1350 additions and 3 deletions
26
rinkplanner/tests/README.md
Normal file
26
rinkplanner/tests/README.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Tests
|
||||
|
||||
Headless tests for the Phase 1 model. They require no editor and no display.
|
||||
|
||||
From the repository root:
|
||||
|
||||
```bash
|
||||
./tools/test.sh
|
||||
```
|
||||
|
||||
Or manually:
|
||||
|
||||
```bash
|
||||
GODOT=/opt/godot/Godot_v4.7.2-stable_linux.x86_64
|
||||
|
||||
# Import once (registers global class names and resources)
|
||||
$GODOT --headless --path rinkplanner --import
|
||||
|
||||
# Run model tests
|
||||
$GODOT --headless --path rinkplanner --script res://tests/run_model_tests.gd
|
||||
|
||||
# Run canvas transform/geometry tests
|
||||
$GODOT --headless --path rinkplanner --script res://tests/run_canvas_tests.gd
|
||||
```
|
||||
|
||||
Exit code `0` means all assertions passed. Failures are printed to stderr.
|
||||
Loading…
Add table
Add a link
Reference in a new issue