rinkplanner/rinkplanner/tests/README.md
torsten e4fd74ea6e feat: ISU 2026/27 und Adult-Kategorien
- SoV 2026/27 (Communication 2786) und Levels 2026/27 (2788)
- 15 Pirouetten- und 5 Sequenz-Features, Windmills, neues ChSp1
- Adult-Kategorien Gold/Silver/Bronze plus Masters/Elite aus dem
  IAFSC-Announcement 2026/27
- Kategorie-Auswahl in der Statusleiste und Kategorie-Validierung
  (Sprunganzahl, erlaubte Sprünge, Level-Caps, Pflichtelemente)
- 60 Adult-Assertions; gesamt 1012 Assertions gruen
- Doku, Findings und Roadmap aktualisiert
2026-10-31 11:21:18 +01:00

2.5 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 ISU level-feature tests
$GODOT --headless --path rinkplanner --script res://tests/run_level_tests.gd

# Run routine element-validation tests
$GODOT --headless --path rinkplanner --script res://tests/run_validation_tests.gd

# Run adult category tests
$GODOT --headless --path rinkplanner --script res://tests/run_adult_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.