Decouples core systems from centralized globals in favor of catalogue-based architecture and data-driven content. Key changes: - Prestige: node-based buff tech tree, graph panel, progress bar - Research: multi-worker system, per-generator research, xp generation - Ascension: meta-currency layer via multi-currency prestige resets - Buffs: refactored as generator-independent via catalogues - UI: currency panel, edge-scrolling camera + zoom, current-goal panel - Alchemy Tower: crafting building with recipe/cost system - Testing: 7 test suites (ascension, prestige, research, goals) - Content: migrated from hardcoded idles/ to gym format (tiny_sword)
40 lines
923 B
Bash
Executable File
40 lines
923 B
Bash
Executable File
#!/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
|