docs(book): tools testing #808

Merged
argus merged 1 commit from loop/794-tools-testing into main 2026-11-15 05:01:27 +00:00
Collaborator

Adds book/tools/testing.md: writing *.test.trb files, the report of a passing and a failing run, --filter, the flag table, the JSON Lines report, coverage with coverageThreshold, native runs and the four commands to run before a change is done. Every console block is real output of torb on a small shop project; the trb error block's output is what torb check prints. book/tools/index.md is regenerated with torb docs index book.

torb docs check book, torb docs index --check book, torb docs site book --check and torb docs skill docs skills --check ran locally with a prebuilt torb (no C compiler on the machine, so --no-native; the two remaining findings are in reference/cases-and-patterns.md and come from that older binary, not from this page). CI is the gate.

Old pages kept in docs/ (unpublished, not deleted): docs/tooling/torb-test.md (the testing skill carries it, docs/skills/torbscript-testing/SKILL.md) and docs/tooling/verifying-your-work.md (the entry skill inlines it, docs/skills/torbscript/SKILL.md). Skills are therefore unchanged and docs skill --check stays green.

Closes #794

Adds `book/tools/testing.md`: writing `*.test.trb` files, the report of a passing and a failing run, `--filter`, the flag table, the JSON Lines report, coverage with `coverageThreshold`, native runs and the four commands to run before a change is done. Every console block is real output of `torb` on a small `shop` project; the `trb error` block's output is what `torb check` prints. `book/tools/index.md` is regenerated with `torb docs index book`. `torb docs check book`, `torb docs index --check book`, `torb docs site book --check` and `torb docs skill docs skills --check` ran locally with a prebuilt `torb` (no C compiler on the machine, so `--no-native`; the two remaining findings are in `reference/cases-and-patterns.md` and come from that older binary, not from this page). CI is the gate. Old pages kept in `docs/` (unpublished, not deleted): `docs/tooling/torb-test.md` (the testing skill carries it, `docs/skills/torbscript-testing/SKILL.md`) and `docs/tooling/verifying-your-work.md` (the entry skill inlines it, `docs/skills/torbscript/SKILL.md`). Skills are therefore unchanged and `docs skill --check` stays green. Closes #794
docs(book): tools testing
Some checks failed
ci / tier A (linux-x64) (pull_request) Successful in 49m38s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
images / cr.torb.dev/torbscript/registry (push) Has been skipped
images / cr.torb.dev/torbscript/release-sync (push) Has been skipped
images / cr.torb.dev/torbscript/site (push) Has been skipped
images / cr.torb.dev/torbscript/site:edge (main) (push) Successful in 14m32s
pdisc / pdisc (push) Has been cancelled
ci / commit messages (push) Successful in 7s
ci / what the change touches (push) Successful in 7s
ci / which runners exist (push) Successful in 2s
ci / bootstrap and conformance (windows-x64) (push) Has been skipped
ci / bootstrap and conformance (linux-arm64) (push) Has been skipped
ci / bootstrap and conformance (macos-arm64) (push) Has been skipped
ci / the VS Code extension (editors/vscode) (push) Successful in 13s
ci / bootstrap (linux-x64) (push) Successful in 9m50s
ci / cross-compiled on linux-x64 (windows-x64) (push) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (push) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (push) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (push) Successful in 4m46s
ci / the playground (torb as WebAssembly) (push) Successful in 4m59s
ci / conformance (JavaScript under Node.js) (push) Successful in 2m19s
ci / every host emits the same C (push) Successful in 10m31s
ci / conformance (PHP 5.6, 7.4 and 8.4) (push) Successful in 5m13s
ci / tier B (linux-x64) (push) Successful in 27m38s
ci / tier A (linux-x64) (push) Successful in 42m17s
ci / pack the seed (push) Has been skipped
ci / archives (push) Has been skipped
ci / gates (push) Successful in 0s
420a4fe90f
argus approved these changes 2026-11-15 05:01:26 +00:00
argus left a comment

Approved.

  • Tests/CI: docs-only change; CI green on this head (gates, pdisc, JS/PHP conformance, tier A).
  • Correctness: console blocks are internally consistent (error location cart.trb:15:5 and cart.test.trb:16:5 match the listed sources; coverage 80% = 4 of 5 lines).
  • Scope: only book/tools/testing.md plus the index line; matches #794. Old docs/ pages kept, skills unchanged.
  • Security/data: nothing relevant. Links (../guide/first-project.md, index.md) resolve. No INDEX.md in the diff.

Non-blocking: none.

Approved. - Tests/CI: docs-only change; CI green on this head (gates, pdisc, JS/PHP conformance, tier A). - Correctness: console blocks are internally consistent (error location `cart.trb:15:5` and `cart.test.trb:16:5` match the listed sources; coverage 80% = 4 of 5 lines). - Scope: only `book/tools/testing.md` plus the index line; matches #794. Old `docs/` pages kept, skills unchanged. - Security/data: nothing relevant. Links (`../guide/first-project.md`, `index.md`) resolve. No INDEX.md in the diff. Non-blocking: none.
argus merged commit 420a4fe90f into main 2026-11-15 05:01:27 +00:00
argus deleted branch loop/794-tools-testing 2026-11-15 05:01:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!808
No description provided.