Sibling articles under this feature previously restated requirements in inconsistent forms.
Design model
Platform spec article
Design model
Spec standingStandard
-
This feature hub owns normative MUST/SHOULD contract text for Test harnesses and fixtures.
Context
Decision
This feature hub owns normative MUST/SHOULD contract text. Sibling articles must not redefine hub requirements and should link here for authority.
Consequences
Contract changes start on the hub or in linked ADRs, then propagate to articles and implementation anchors.
Verification anchors
site/website/src/content/docs/platform-spec/compiler/conformance/test-harnesses-and-fixtures/index.mdxarticle bundle under the same feature directory.
-
Platform-spec text supersedes informal crate comments for Test harnesses and fixtures.
Context
Implementation crates accumulated informal notes that diverged from published contracts.
Decision
Normative platform-spec prose and ADRs under this feature supersede informal comments in implementation crates until explicitly migrated into spec text.
Consequences
Engineers file spec/ADR updates when behavior changes; crate comments are non-authoritative for conformance arguments.
Verification anchors
compiler/crates/beskid_tests/src/analysiscompiler/crates/beskid_tests/src/runtimecompiler/crates/beskid_e2e_tests/src/tests/runtime_cases.rs
-
This feature explains how the project proves that implemented behavior remains stable release over release. It is organi
Context
This feature explains how the project proves that implemented behavior remains stable release over release. It is organized into newcomer-friendly articles that move from model, to flow, to contracts, then practical verification and debugging guidance.
Decision
The reference compiler must implement Test harnesses and fixtures as documented in this feature hub and its article bundle.
Consequences
Changes require hub/ADR updates and verification anchor extensions.
Verification anchors
compiler/crates/beskid_tests/src/analysiscompiler/crates/beskid_tests/src/runtimecompiler/crates/beskid_e2e_tests/src/tests/runtime_cases.rs
- Contracts and edge cases Normative guarantees and known edge cases for `Test harnesses and fixtures`.
- Design model Conceptual model for `Test harnesses and fixtures` and its subsystem boundaries.
- Examples Practical examples that demonstrate `Test harnesses and fixtures` behavior.
- FAQ and troubleshooting Common questions and debugging guidance for `Test harnesses and fixtures`.
- Flow and algorithm End-to-end control flow and major algorithmic steps for `Test harnesses and fixtures`.
- Verification and traceability How `Test harnesses and fixtures` requirements map to tests and implementation anchors.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Harness layers
Section titled “Harness layers”Conformance is split so failures localize quickly:
| Layer | Crate path | Pins |
|---|---|---|
| Analysis fixtures | beskid_tests/src/analysis | Diagnostic codes, resolver graphs, staged rules |
| Runtime JIT | beskid_tests/src/runtime | Builtin dispatch, GC, fibers |
| E2E sources | beskid_e2e_tests | Full .bd programs through CLI backends |
| Doc tests | beskid_tests/src/doc_tests.rs | Spec snippets compile and match asserted output |
flowchart LR fixture[.bd / .json fixtures] analysis[analysis harness] runtime[runtime harness] e2e[e2e harness] fixture --> analysis fixture --> runtime fixture --> e2e analysis --> diag[Diagnostic snapshot] runtime --> jit[JIT smoke] e2e --> exit[Process exit + IO]
Fixture conventions
Section titled “Fixture conventions”- Prefer minimal
.bdfiles per diagnostic or rule; shareProject.projlayouts viabeskid_tests/src/projectsbuilders. - Golden diagnostics must cite stable codes from diagnostic code registry.
- Runtime tests must negotiate the same ABI version as production
beskid run.
Code anchors
Section titled “Code anchors”compiler/crates/beskid_tests/src/analysiscompiler/crates/beskid_tests/src/runtimecompiler/crates/beskid_e2e_tests/src/tests/runtime_cases.rscompiler/crates/beskid_tests/src/doc_tests.rs