Skip to main content

Module tests

Module tests 

Source
Expand description

The test report: the suite’s own results, rendered.

The evidence is what the runs already write — test/run.sh’s TSV report for the behavioural cases and cargo test’s summary lines for the crate — and this module parses, joins and renders it. It decides nothing about what passed: a case that failed is a case the runner said failed, and a report that disagreed with the runner would be worse than no report.

Structs§

Case
One behavioural case, as the runner recorded it.
CrateTests
What cargo test reported, summed over its binaries.
Run
A whole run: the cases, and what the crate’s own tests said.

Constants§

SURFACE_ID
The identity of the surface this report owns.
SURFACE_PRODUCER
What produces it, for a reader who has to rebuild it.
SURFACE_TITLE
The surface’s title, in a listing.

Functions§

parse_cases
Parse the runner’s TSV: name <TAB> result <TAB> seconds <TAB> phase, one case per line.
parse_crate_tests
Read cargo test’s human output and sum its result lines.
render
Render the run into its own directory under the generated web root, and declare it.