mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 06:49:58 +01:00
Replace the 1650-line action-executor column encyclopedia with eleven table-driven cases that pin the April 2026 wrong-column class of bug. Drop prompt-context byte snapshots. Rewrite testing docs to reject coverage-percentage goals and point at verify as the real gate. Co-authored-by: Cursor <cursoragent@cursor.com>
1.3 KiB
1.3 KiB
OrangeCat testing guide
created_date: 2025-01-01 last_modified_date: 2026-09-23 last_modified_summary: Pointed at docs/testing/README.md as the policy SSOT; dropped coverage-percentage instructions.
Policy SSOT: README.md — contracts over headcount, verify over coverage %.
Commands
pnpm run verify # merge gate (static checks + unit)
pnpm run test:unit # Vitest unit suite only
pnpm exec vitest run __tests__/unit/cat
pnpm run test:e2e:matrix:p0 # sacred Playwright paths
pnpm run test:e2e # full Playwright (CI / release)
Where tests live
| Path | Role |
|---|---|
__tests__/unit/ |
Behaviour and SSOT contracts |
__tests__/unit/cat/ |
Cat tool/prompt/money invariants — keep lean |
tests/e2e/ |
Playwright journeys; prefer @p0 |
scripts/check-*.mjs |
Static gates run by verify |
Adding a test
- Name the user-visible or money-moving contract it protects.
- Prefer one row in an existing table-driven file over a new describe tree.
- If
verify'scheck:*scripts already catch it, do not add a unit test.