From 07601b6d7932c1ae6720f43e01b8fff1b5c5dbea Mon Sep 17 00:00:00 2001 From: moyin <244344649@qq.com> Date: Thu, 25 Dec 2025 20:51:00 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9A=E6=9B=B4=E6=96=B0README=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=B5=8B=E8=AF=95=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新快速测试部分,使用新的综合测试脚本 - 添加测试脚本的参数说明(跳过限流测试、自定义服务器等) - 更新测试内容列表,包含新增的功能测试 - 统一测试命令,简化开发者使用流程 --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 299fc83..e3663f1 100644 --- a/README.md +++ b/README.md @@ -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 ``` ### 📈 测试覆盖率