Skip to main content

Crate varar_runner

Crate varar_runner 

Source
Expand description

varar-runner — the imperative shell shared by var test-runner adapters.

Spec discovery (the shared glob semantics), planning/running examples, failure rendering, and the filesystem varar.lock.json baseline store for drift. Contains no pipeline logic — it delegates to varar-core. Steps are supplied by the caller (Rust compiles step files in; there is no dynamic load_steps), as a Registry plus a context factory.

Re-exports§

pub use baseline_store::FileBaselineStore;
pub use discovery::find_specs;
pub use discovery::match_spec;
pub use render::render_failure;
pub use run::example_names;
pub use run::plan_spec;
pub use run::run_example;

Modules§

baseline_store
The filesystem BaselineStore: the committed drift baseline lives at the project root as varar.lock.json. The core owns the format; this only reads and writes the raw text.
discovery
Spec discovery: the shared glob→regex semantics (matching the Python/Ruby runners byte-for-byte on **, *, ?), recursive file walk, include/exclude.
render
Pure human-readable rendering of a step failure, anchored to the .md. Port of varar_runner.render.render_failure; reuses the core diff payloads.
run
Planning and running examples, plus the adapter display-name rule.