- SVG direkt aus dem Modell mit Rink, Section-Nummern und Legende - PNG über eine eigene Export-Szene in 2560 x 1600 - Export der Gesamtkür oder des aktiven Abschnitts - Export-Dialog im Datei-Menü, Ablage unter user://exports - Tests auf 417 Assertions erweitert
1.3 KiB
1.3 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 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
Exit code 0 means all assertions passed. Failures are printed to stderr.