mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user