25 lines
878 B
Bash
25 lines
878 B
Bash
|
|
#!/bin/bash
|
||
|
|
# KARDS Battle System 测试快速运行脚本
|
||
|
|
|
||
|
|
echo "🧪 运行 KARDS Battle System 测试"
|
||
|
|
echo "==============================="
|
||
|
|
|
||
|
|
cd "$(dirname "$0")"
|
||
|
|
|
||
|
|
# 运行核心测试
|
||
|
|
echo "🔧 单元测试..."
|
||
|
|
python3 tests/unit/test_battle_engine.py # 新战斗引擎测试
|
||
|
|
python3 tests/unit/test_position_deployment.py # 指定位置部署测试
|
||
|
|
python3 tests/unit/test_turn_system.py # 回合系统测试
|
||
|
|
python3 tests/unit/test_unit_type_rules.py
|
||
|
|
python3 tests/unit/test_artillery_simple.py
|
||
|
|
|
||
|
|
echo -e "\n🔗 集成测试..."
|
||
|
|
python3 tests/integration/test_drag_system.py
|
||
|
|
python3 tests/integration/test_corrected_battlefield.py
|
||
|
|
|
||
|
|
echo -e "\n📖 示例测试..."
|
||
|
|
python3 tests/examples/test_new_readme_example.py # 新战斗引擎README示例
|
||
|
|
python3 tests/examples/test_readme_example.py # 旧版本兼容测试
|
||
|
|
|
||
|
|
echo -e "\n✅ 测试完成!"
|