docs:更新README中的测试说明

- 更新快速测试部分,使用新的综合测试脚本
- 添加测试脚本的参数说明(跳过限流测试、自定义服务器等)
- 更新测试内容列表,包含新增的功能测试
- 统一测试命令,简化开发者使用流程
This commit is contained in:
moyin
2025-12-25 20:51:00 +08:00
parent 7429de3cf4
commit 07601b6d79

View File

@@ -78,16 +78,25 @@ pnpm run dev
### 🧪 快速测试
```bash
# Windows
.\test-api.ps1
# 运行综合测试(推荐)
.\test-comprehensive.ps1
# Linux/macOS
./test-api.sh
# 跳过限流测试(更快)
.\test-comprehensive.ps1 -SkipThrottleTest
# 测试远程服务器
.\test-comprehensive.ps1 -BaseUrl "https://your-server.com"
```
**测试内容:**
- ✅ 应用状态检查
- ✅ 邮箱验证码发送与验证
- ✅ 用户注册与登录
- ✅ 验证码登录功能
- ✅ 密码重置流程
- ✅ 邮箱冲突检测
- ✅ 验证码冷却时间清除
- ✅ 限流保护机制
- ✅ Redis文件存储功能
- ✅ 邮件测试模式
@@ -323,9 +332,8 @@ pnpm run test:watch
# 生成测试覆盖率报告
pnpm run test:cov
# API功能测试
.\test-api.ps1 # Windows
./test-api.sh # Linux/macOS
# API功能测试(综合测试脚本)
.\test-comprehensive.ps1
```
### 📈 测试覆盖率