ci: 提升前端单测覆盖率门禁到50% (#591)
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Unit Tests (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Frontend Unit Tests (push) Has been cancelled
CI Build & Deploy Pipeline / Production Browser E2E (push) Failing after 1416h7m37s
CI Build & Deploy Pipeline / Build Production Worker Image (push) Failing after 1416h7m38s
CI Build & Deploy Pipeline / Build Production Web Image (push) Failing after 1416h7m38s
CI Build & Deploy Pipeline / Build Production API Image (push) Failing after 1416h7m40s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 1416h8m22s
CI Build & Deploy Pipeline / Build Staging API Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Web Image (push) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (push) Failing after 2m21s
CI Build & Deploy Pipeline / Staging API Integration Tests (push) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (push) Failing after 1416h39m45s

Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #591.
This commit is contained in:
2026-07-19 15:21:07 +08:00
committed by auto-approve-bot
parent 29e15158b3
commit 7ac875b73c
+5 -5
View File
@@ -17,12 +17,12 @@ export default defineConfig({
provider: "v8",
reporter: ["text", "json", "html"],
exclude: ["node_modules/", "src/test/", "e2e/", "**/*.d.ts", "**/*.config.*", "**/mockData"],
// CI 覆盖率门禁(极低门槛起步,逐步提升)
// 当前实际覆盖率约 0.8%/0.9%/1.1%,先设极低门槛确保CI跑通
// CI 覆盖率门禁(Phase 4 后提升,逐步逼近目标)
// 当前实际:行 ~62% / 分支 ~61% / 函数 ~25%
thresholds: {
lines: 0.5,
functions: 0.5,
branches: 0.5,
lines: 50,
branches: 50,
functions: 20,
},
},
},