test: run the docker suite without the coverage gate

pnpm test:docker ran pnpm test:ci (vitest --coverage), but the lean test image deliberately skips binary-gated tools (AI model bundles, LibreOffice, etc.), so it can never meet the host-calibrated coverage thresholds -- the container exited non-zero on coverage even with zero test failures. Point the compose command at vitest run so test:docker is a clean functional pass/fail gate; coverage stays enforced on host CI where every tool is present.
This commit is contained in:
SnapOtter
2026-06-17 14:28:41 +08:00
parent 2d2f23cff0
commit d46b82e11e
+5 -1
View File
@@ -10,7 +10,11 @@ services:
context: ..
dockerfile: docker/Dockerfile.test
container_name: SnapOtter-test-unit
command: ["pnpm", "test:ci"]
# Functional gate: run the suite without --coverage. The lean test image
# skips binary-gated tools (AI models need on-demand bundles, etc.), so it
# cannot meet the host-calibrated coverage thresholds; coverage stays
# enforced on host CI where every tool is present.
command: ["pnpm", "vitest", "run", "--reporter=verbose"]
environment:
- NODE_ENV=test
- AUTH_ENABLED=true