From f8280fc05cfabe34ca70aa94cdbe6976d60a4de7 Mon Sep 17 00:00:00 2001 From: fonghehe <331002675@qq.com> Date: Sat, 29 Aug 2026 01:34:50 +0800 Subject: [PATCH] docs: update backend integration coverage --- docs/en/guide/testing.md | 2 +- docs/guide/testing.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/guide/testing.md b/docs/en/guide/testing.md index 24fc908..a777150 100644 --- a/docs/en/guide/testing.md +++ b/docs/en/guide/testing.md @@ -16,7 +16,7 @@ pnpm check ## Current Coverage -Vitest and Vue Test Utils cover URL redirects, request errors, API modules, the user store, SSE parsing, the streaming composable, safe Markdown, Login Form, and Chat Composer. Core thresholds are 60% for lines/statements/functions and 50% branches; v2 currently reports 72.25% lines. +Vitest and Vue Test Utils cover URL redirects, request errors, API modules, the user store, SSE parsing, the streaming composable, safe Markdown, Login Form, and Chat Composer. Core thresholds are 60% for lines/statements/functions and 50% branches; v2 currently reports 76.68% lines. Playwright uses a Pixel 7 profile for Home, three-language switching, Login, Mock API, AI Streaming/Stop, and 401 Redirect. The backend workspace adds `scripts/smoke.py`, which verifies Gin login/Project CRUD and authenticated FastAPI SSE through the real Vue proxy. diff --git a/docs/guide/testing.md b/docs/guide/testing.md index 75de8dd..a33b439 100644 --- a/docs/guide/testing.md +++ b/docs/guide/testing.md @@ -16,7 +16,7 @@ pnpm check ## 当前覆盖 -Vitest + Vue Test Utils 覆盖 URL/Redirect、请求错误、API modules、user Store、SSE parser、streaming composable、安全 Markdown、Login Form 和 Chat Composer。核心范围门槛为 lines/statements/functions 60%,branches 50%;v2 实测 lines 72.25%。 +Vitest + Vue Test Utils 覆盖 URL/Redirect、请求错误、API modules、user Store、SSE parser、streaming composable、安全 Markdown、Login Form 和 Chat Composer。核心范围门槛为 lines/statements/functions 60%,branches 50%;v2 实测 lines 76.68%。 Playwright 使用 Pixel 7 配置覆盖 Home、三语言切换、Login、Mock API、AI Streaming/Stop 与 401 Redirect。后端工作区的 `scripts/smoke.py` 额外通过真实 Vue 代理验证 Gin 登录/Project CRUD 和 FastAPI 鉴权 SSE。