28 lines
1.9 KiB
Markdown
28 lines
1.9 KiB
Markdown
# TableTarot (folder and repo are still named TableTower)
|
||
|
||
How to work on it: `docs/DESIGN.md` §5. Module map: `docs/ARCHITECTURE.md`.
|
||
|
||
## Test time budget: always follow
|
||
- Run tests only through `tools/run_tests.sh [filter]`. It stops every run at **15 seconds**.
|
||
- Only the user changes `BUDGET_SECS`. If the tests can't reasonably fit, ask them, with timings.
|
||
- Don't get around it: no looping over suites, no several filtered runs to cover a full run,
|
||
no background or repeated runs.
|
||
- While working, run the suites for the area you changed, by filter. Do one full run at the end.
|
||
- `NOT RUN` means not tested. Say which suites were not run; never report them as passing.
|
||
- A new test must fit. Prefer adding to an existing suite; a new app suite costs about half a second to start.
|
||
No real waiting: the runner uses simulated time (`--fixed-fps 60`).
|
||
- A suite that loads its own board calls `start_main(false)`: building the demo is slow.
|
||
- Suites extend `TestBase` (no UI) or, only if they need the app, `AppTestBase`.
|
||
|
||
## Major project: branches, gates and specs
|
||
TableTarot is a **major** project (Robin, 2026-12-01). Rules: `~/AI/Rules/coding/tests.md`
|
||
("Major and minor projects") and `coding/code.md` ("Specs"). In short:
|
||
- Flow: feature branch → `experimental` → `dev` → `main`. Branch features off `experimental`.
|
||
- **Into `experimental`: no gate.** The agent tests only its own code, then merges.
|
||
- **Dev gate** (`experimental` → `dev`): the user tries it and says OK, then one full
|
||
`tools/run_tests.sh` run plus the spec checks.
|
||
- **Release sweep** (`dev` → `main`): `tools/run_tests.sh --sweep` (every suite, 5× the budget)
|
||
plus the spec health report.
|
||
- Pushing `experimental`, `dev` or `main` needs the user's OK. Own work branches: push freely.
|
||
- **Specs are required** (Coderstanding app `tabletower`). Plan new behaviour as a spec Draft
|
||
branch first; only the user approves specs. Check: `coderstanding specs tabletower --lines`.
|