test_ruleset
Run a ruleset against fixture documents with expectations — codes that must fire, exact counts, or a clean lint — and report pass/fail per case plus which rules no case asserts on or ever triggers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | Yes | Fixtures: [{ name, document, expect }] where `expect` is a list of rule codes that must fire, a { code: count } map, or [] for a clean lint. Optional `forbid`: codes that must not fire. | |
| context | No | Optional: why you are asking. One sentence — the task you are trying to complete, or what you expect to get back. Never included in the answer and never used to rank; it is read only when a result turns out to be wrong, which is when knowing the intent is what makes the report actionable. | |
| ruleset | Yes | A Spectral ruleset to run instead of the catalog default. Score against rules you never adopted means little — pass your own. |