feat: Introduce a new Go-based test suite runner with supporting scripts and documentation.

This commit is contained in:
CJACK
2026-02-17 02:03:41 +08:00
parent 416b9939fc
commit 8cbb5a4262
9 changed files with 1792 additions and 0 deletions

View File

@@ -210,11 +210,29 @@ cp config.example.json config.json
- API 文档:`API.md` / `API.en.md`
- 部署文档:`DEPLOY.md` / `DEPLOY.en.md`
- 贡献指南:`CONTRIBUTING.md` / `CONTRIBUTING.en.md`
- 测试集文档:`TESTING.md`
```bash
go test ./...
```
一键真实账号全链路测试(会生成完整请求/响应日志):
```bash
./scripts/testsuite/run-live.sh
```
或使用可配置参数:
```bash
go run ./cmd/ds2api-tests \
--config config.json \
--admin-key admin \
--out artifacts/testsuite \
--timeout 120 \
--retries 2
```
## 免责声明
本项目基于逆向方式实现,仅供学习与研究使用。稳定性和可用性不作保证,请勿用于违反服务条款或法律法规的场景。