tests & can charge up thrust

This commit is contained in:
2026-05-25 20:51:48 +03:00
parent bfb026c7ae
commit 6abf5355c2
10 changed files with 1022 additions and 15 deletions
Executable
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Run all project tests. Exit code 0 = all passed.
# Usage: bash run_tests.sh [--no-gameplay]
set -euo pipefail
GODOT="${GODOT:-godot}"
SKIP_GAMEPLAY=0
for arg in "$@"; do [[ "$arg" == "--no-gameplay" ]] && SKIP_GAMEPLAY=1; done
echo "=== gdlint ==="
gdlint *.gd tests/*.gd
echo ""
echo "=== Logic tests ==="
"$GODOT" --headless --script tests/logic_test.gd
if [[ "$SKIP_GAMEPLAY" -eq 0 ]]; then
echo ""
echo "=== Gameplay tests (headless — assertions only, screenshots may be blank) ==="
"$GODOT" --headless --script tests/gameplay_test.gd
echo "Frame strip: tests/output/gameplay/"
fi
echo ""
echo "=== All tests passed ==="