authoring-test-suites
Choose, write and review Bolt tests that fail for a named production defect.
- License 许可
- MIT
- 所属仓库
- norbital-ai/oss
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- authoring-test-suites
- license
- MIT
- metadata
- { "package": "@norbital-ai/bolt" }
- description
- Choose, write and review Bolt tests that fail for a named production defect.
02 资源文件 4
- 参考文档references/coverage-rules.md4.7 KB
- 参考文档references/dependency-injection.md2.0 KB
- 参考文档references/false-confidence.md2.2 KB
- 参考文档references/runners-and-harnesses.md6.1 KB
03 SKILL.md 正文
Authoring test suites
A test fails for a named production defect. Choose the smallest level that can observe the behaviour and assert its result. Call automated checks edge case tests.
Protocol
- Name the mechanism and the edit that would break it.
- Pick the boundary:
references/coverage-rules.md. - Discover the kit:
keyof typeof import('@norbital-ai/bolt-cli/test'), then its types throughworkspace_lang. Do not readnode_modulesor copy a remembered harness. - Use small synthetic fixtures from the template's
seed/test/or inline rows. - Include one valid operation and one relevant refusal; assert persisted state, and that a refusal left data unchanged.
- Run through
workspace_testorbolt test. Trust the exit code and the tested source. - Fix a failure's cause; never raise a timeout or weaken an assertion to reach green.
Routing
| Task | Reference |
|---|---|
| What is and is not a test, boundaries, assertions, probes, deletion | references/coverage-rules.md |
| Kit, seed pack, syncs, envoys, inference, runners, clocks, migrations | references/runners-and-harnesses.md |
| Ports, layers, doubles, module seams, environment | references/dependency-injection.md |
| Reviewing an existing suite for false confidence | references/false-confidence.md |
Limits
- One mechanism, once, in the package owning it. Templates do not retest Bolt; Bolt does not retest ui.
- A file costs about 2 s CPU; the realm about 60 s. A slow file is cut, never given a timeout.
- No sleeps, spawns, builds or network beyond loopback in a test.
- Probes are uncommitted scratch, deleted when done.
04 同仓库更多 Skills
norbital-platform
How Norbital behaves at runtime - approvals, policies, history, audit, agent limits. Read before answering.
data-modelling
Route data modelling decisions - models, fields, layers, state, invariants, search, migrations.
bolt-requirements
Turn a vague business requirement into a concrete Norbital build plan a stakeholder can confirm.
bolt-primer
Build a Bolt workspace with no other skill - source roles, contract queries, authoring order, pitfalls.
bolt-feasibility
Decide per sub-function whether a business function is native, mediated, or not appropriate on Norbital.
authoring-tenant-workspace
Index of Bolt authoring references - models, access, apps, automations, integrations, UI, build.