Skip to main content

Module html

Module html 

Source
Expand description

render_html — a self-contained HTML view of a run’s event stream.

A derived view (ADR-0008), never a second record: it replays the same events.jsonl the console and JUnit reporters consume. Pure and deterministic in events (sans-IO core), so it snapshot-locks like the emitter. Events reaching here are already redacted at the sink (report::sink), so no secret value can enter the page — the same assumption explain makes.

Functions§

render_html
Render events as a standalone HTML document. artifacts_href is the link prefix for each scenario’s .hurl artifact (e.g. "artifacts", resolved relative to wherever the caller writes the file); the artifact filename is derived with the same slug the emitter uses, so the links match on disk.