910 B
910 B
Testing Strategy Baseline
Goals
- Keep lint, typecheck, unit/integration, and e2e as mandatory quality gates.
- Make e2e runs deterministic by preparing schema and seeded data before test execution.
- Keep test data isolated per environment (
devlocal, CI database service in workflow).
Current Gate Stack
bun run checkbun run typecheckbun run testbun run test:e2e
Data Preparation
bun run test:e2e:prepareruns:- Prisma client generation
- migration deploy
- seed data (including support user bootstrap)
bun run test:e2eand related scripts calltest:e2e:prepareautomatically.
Locale Integration Coverage
e2e/i18n.pw.tscovers:- web locale switch + persistence
- admin locale switch + persistence
CI
- Real quality workflow:
.gitea/workflows/ci.yml - Uses a PostgreSQL service container and runs the full gate stack, including e2e.