Files
Nexus/docs/changelog/2026-06-01-nexus-acceptance-runner.md
T
2026-07-08 22:31:31 +08:00

38 lines
1.1 KiB
Markdown
Raw 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.
# 2026-06-01 全功能验收脚本 run_nexus_acceptance
## 日期
2026-06-01
## 变更摘要
新增统一验收入口 `scripts/run_nexus_acceptance.py`:自动跑核心/扩展 API 测试、按功能模块汇总 PASS/FAIL,可选单元测试与 Playwright UI。
## 动机
用户需要一键脚本识别各功能是否正常,而非分散执行 `test_api.py` 与 Playwright。
## 涉及文件
- `scripts/run_nexus_acceptance.py` — 主入口
- `scripts/run_full_acceptance.sh` — WSL/生产包装(API + 可选 UI
- `tests/acceptance_catalog.py` — 功能模块与检查项映射
## 迁移 / 重启
## 2026-06-01 修复
- `tests/test_full_site_api.py``api_test_plain_text` / `api_test``test_api.py` 对齐
## 验证方式
```bash
# 本地(后端需已启动,.env 含测试账号)
python scripts/run_nexus_acceptance.py
# 含 UI(需 frontend npm install + NEXUS_E2E_PASSWORD
python scripts/run_nexus_acceptance.py --with-ui
# 含单元测试(无需后端)
python scripts/run_nexus_acceptance.py --with-unit --skip-api
# JSON 报告
python scripts/run_nexus_acceptance.py --json reports/acceptance.json
```