From 8556122e8dcc75849868b4a04a65a5a79224cc20 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Sun, 20 Sep 2026 09:39:52 +0200 Subject: tests: wire check, pty and sanitizer targets and document them --- docs/STATE.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'docs/STATE.md') diff --git a/docs/STATE.md b/docs/STATE.md index 9f2f29f..aae9906 100644 --- a/docs/STATE.md +++ b/docs/STATE.md @@ -6,9 +6,10 @@ and `docs/TUI-GUIDELINES.md` (UI conventions). Dated 2026-09-19. ## Status Working self-hosted bookkeeping system, not production-proven. Backend ledger -core is complete; filing/year-end/payroll are not. TUI is usable and -exercised via pty smoke tests; the test suite (`make test`) covers the -server/protocol/ledger only. +core is complete; filing/year-end/payroll are not. TUI is usable and exercised +by `make test-pty` (golden screen-text scenarios); `make test` covers the +server/protocol/ledger, the TUI widget unit tests and the docs consistency +check. ## Locked decisions @@ -229,6 +230,13 @@ server/protocol/ledger only. ## Known caveats +- Developer tooling (2026-09-20): `g_commands[]` carries declarative argument + schemas (`CMD_ARGS`); `describe` emits them and the dispatcher validates + before the handler runs. `make check` (part of `make test`) fails when a + command or error code is missing from `PROTOCOL.md` + (`scripts/check-consistency.sh`). `make test-asan`/`test-ubsan` build + `test_core` with sanitizers; `make test-pty` runs `scripts/tui-golden.py` + (dashboard, audit, vouchers) against a throwaway `/tmp` daemon. - Never commit unless the human asks. - SQLite files must not be backed up live with restic; use `backup.snapshot` (`VACUUM INTO`) and point restic at the snapshots. -- cgit v1.3