diff --git a/AGENTS.md b/AGENTS.md index 0521b8d..e04a4fc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,7 @@ docker compose up -d # starts postgres, backend, frontend ### All-in-one ```bash -./gradlew check # frontend lint → frontend test → backend test+coverage → E2E (Docker) +./gradlew check # lint → frontend/backend tests with coverage thresholds → E2E (Docker) ./gradlew coverage # backend + frontend tests with coverage reports ./gradlew up # docker compose up -d ./gradlew down # docker compose down @@ -170,10 +170,12 @@ export STRIPE_SECRET_KEY=sk_test_fake STRIPE_WEBHOOK_SECRET=whsec_fake STRIPE_PR ./gradlew check ``` -This runs frontend lint, frontend unit tests (242), backend tests (163), coverage -thresholds, Flyway checks, and **all 90 E2E tests in Docker**. **Do not commit or -push if this fails.** Optional local guard: `./scripts/install-pre-commit-hook.sh` -(runs the same `check` on every `git commit`). +This runs frontend lint, frontend unit tests **with Vitest coverage thresholds** +(70% lines, 60% branches, 70% functions), backend tests with **JaCoCo thresholds** +(70% lines, 60% branches), Flyway checks, and **all 90 E2E tests in Docker**. +**Do not commit or push if this fails.** Optional local guard: +`./scripts/install-pre-commit-hook.sh` (runs the same `check` on every `git commit`; +fails if line or branch coverage is below threshold). ### Frontend (Vue.js 3) - `