Files
DronePlanning/tools/test_validate/README.md
2026-02-20 23:04:09 +08:00

52 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 测试与验证工具
该目录用于接口回归、批量稳定性测试和结果导出。
## 快速开始(完整命令)
```bash
cd /home/huangfukk/DronePlanning
source backend_service/venv/bin/activate
python tools/test_validate/run_tests.py
```
## 目录说明
```text
tools/test_validate/
├── instructions/ # 指令集(.txt
├── modules/ # API 客户端、批量执行、可视化等
├── validation/ # 输出结果目录
└── run_tests.py # 统一入口
```
## 使用方式
- Mode 1交互式单条测试快速调试
- Mode 2批量测试场景回归/稳定性)
输出默认在 `tools/test_validate/validation/`,包括:
- `test_summary.csv`
- `test_details.csv`
- 每条指令的 `response.json``plan.png`
## 典型回归流程
```bash
cd /home/huangfukk/DronePlanning
source backend_service/venv/bin/activate
# 先确保后端已启动
./start_all.sh status
# 运行测试菜单
python tools/test_validate/run_tests.py
```
## 常见问题
- 后端未启动:先执行 `./start_all.sh start``./start_all_vllm.sh start`
- API 超时:查看 `logs/fastapi.log` 与模型日志
- 结果目录为空:确认菜单中已实际执行测试轮次