- ElementDefinition/ElementCatalog in src/core/rules mit JSON-Daten - 24 Sprünge, 16 Pirouetten und 2 Sequenzen aus ISU Communication 2707 - Lookup nach Familie/Level, kanonischen Suffixen und Anzeigenamen - Level-Suffixe werden beim Übernehmen ins Level-Feld normalisiert - Base-Value-Hinweis samt Quellen-Tooltip im Element-Inspector - 160 neue Regelwerk-Assertions; Whiteboard-Tests erweitert (766 gesamt) - JSON über include_filter in allen Export-Presets - Docs: isu-rules.md, Findings, Architektur und Roadmap aktualisiert
2.1 KiB
2.1 KiB
Tests
Headless tests for the Phase 1 model, canvas and whiteboard controller. They
require no editor and no display. tools/test.sh isolates user:// in a
temporary XDG_DATA_HOME, so tests never touch real autosaves or routines.
From the repository root:
./tools/test.sh
Or manually:
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 ISU element catalog tests
$GODOT --headless --path rinkplanner --script res://tests/run_rules_tests.gd
# Run canvas transform/geometry tests
$GODOT --headless --path rinkplanner --script res://tests/run_canvas_tests.gd
# Run whiteboard controller/scene tests
$GODOT --headless --path rinkplanner --script res://tests/run_whiteboard_tests.gd
# Run undo/redo history tests
$GODOT --headless --path rinkplanner --script res://tests/run_history_tests.gd
# Run playback dot/timeline tests
$GODOT --headless --path rinkplanner --script res://tests/run_playback_tests.gd
# Run segment timing/presets/calibration tests
$GODOT --headless --path rinkplanner --script res://tests/run_timing_tests.gd
# Run SVG export tests
$GODOT --headless --path rinkplanner --script res://tests/run_export_tests.gd
# Run touch gesture tests
$GODOT --headless --path rinkplanner --script res://tests/run_touch_tests.gd
# Run canvas performance stress test
$GODOT --headless --path rinkplanner --script res://tests/run_perf_tests.gd
# Run FTP sync planning/parser/settings tests
$GODOT --headless --path rinkplanner --script res://tests/run_sync_tests.gd
Manueller visueller Smoke-Test (Layout bei einer Fenstergröße prüfen):
xvfb-run -a $GODOT --path rinkplanner \
--script res://tests/manual/capture.gd -- 1024 768 /tmp/capture.png
Element-Marker visuell prüfen (optional mit place oder dialog):
xvfb-run -a $GODOT --path rinkplanner \
--script res://tests/manual/capture_elements.gd -- 1400 876 /tmp/elements.png dialog
Exit code 0 means all assertions passed. Failures are printed to stderr.