You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: document the Errored conformance outcome, and gate the examples on it #258
The fix for #246 adds a fourth Conformance.Outcome, Errored: a rule that dies (a defect, not a finding) is now reported as that rule's outcome instead of failing the whole verify / verifyWith run. Two places that the #246 PR deliberately does not touch, because they belong to the concurrent work on #148, still assume the run dies on a defect:
docs/conformance.md describes the outcomes as Passed / Failed / Skipped and says nothing about Errored, the DIED mark in format, the errored count in summarise, or that assert dies on an Errored outcome.
examples/{blog,github,northwind}/test/conformance.test.ts gate on outcome._tag === "Failed" and never call Conformance.assert. Before bug: a conformance rule that dies loses the whole Report, including the writes ledger #246 a defect in any rule failed the whole run, so these tests went red; now the run returns a report, and an Errored rule outside the write-rule list (which is checked for Passed) would not fail them.
Proposal
Add a line to docs/conformance.md (next to the Skipped / applicability-gating text) describing Errored: what it means, how format prints it, that summarise counts it as errored, that assert dies on it, and that interruption still stops the run.
In each example's conformance test, assert that no outcome is Errored (for example expect(Conformance.summarise(report).errored).toBe(0), printing Conformance.format(report) when it is not), so a defect in a rule still fails the example's suite.
Done when
docs/conformance.md documents the Errored outcome.
Each example's conformance test fails when any rule is Errored.
Activity
test(examples): fail the conformance suites on a rule that died; docu…