Fix research

This commit is contained in:
2026-04-15 12:01:28 +02:00
parent 0e8c682ae7
commit 45e1df5a46
37 changed files with 2848 additions and 20 deletions

39
scripts/run_test.sh Executable file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
# Godot Test Runner - Single Test
# Usage: ./scripts/run_test.sh <test_script_path>
# Example: ./scripts/run_test.sh res://tests/test_gold_mine_click.gd
set -e
TEST_SCRIPT="$1"
GODOT_BIN="${GODOT_BIN:-godot}"
if [ -z "$TEST_SCRIPT" ]; then
echo "Usage: $0 <test_script_path>"
echo "Example: $0 res://tests/test_gold_mine_click.gd"
exit 1
fi
if [ ! -f "$TEST_SCRIPT" ]; then
echo "Error: Test script not found: $TEST_SCRIPT"
exit 1
fi
echo "=========================================="
echo "Running test: $TEST_SCRIPT"
echo "=========================================="
echo ""
"$GODOT_BIN" --headless --path . -s "$TEST_SCRIPT"
EXIT_CODE=$?
echo ""
echo "=========================================="
if [ $EXIT_CODE -eq 0 ]; then
echo "✓ Test passed"
else
echo "✗ Test failed with exit code: $EXIT_CODE"
fi
echo "=========================================="
exit $EXIT_CODE