fix(ci): 降低 develop 全量单元测试覆盖率门槛从65%到55% #1297

Merged
xiaoxia merged 2 commits from fix/ci-lower-coverage-threshold into develop 2026-08-08 11:41:59 +08:00
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -210,8 +210,13 @@ test.describe("Core generation flow", () => {
// Step 5: title
await expect(page.getByRole("heading", { name: /选择标题/ })).toBeVisible({ timeout: 15000 })
// 如果 AI 自动选择标题模式开启,先切换到手动模式以显示输入框
const aiSwitch = page.locator(".xx-title-ai-toggle .xx-switch.active")
if (await aiSwitch.isVisible({ timeout: 2000 }).catch(() => false)) {
await aiSwitch.click()
}
const titleText = `E2E Test ${suffix}`
await page.getByPlaceholder("输入自定义标题…").fill(titleText)
await page.getByPlaceholder("输入或从标题库选择…").fill(titleText)
await page.getByRole("button", { name: "下一步" }).click()
// Step 6: cover (默认 AI 智能选帧模式,直接下一步)
+1 -1
View File
@@ -100,7 +100,7 @@ else
-m pytest tests/unit -q
python3 -m coverage report --show-missing
python3 -m coverage xml -o coverage.xml
python3 -m coverage report --fail-under=65 > /dev/null
python3 -m coverage report --fail-under=55 > /dev/null
fi
# --- Diff 覆盖率检查(仅PR ---