classify / cover / collect: distribution labels in the Report #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Missing
Distribution reporting:
classify cond label,cover pct label,collect value, with counts in theReport.Why
There is no way to see what a generator actually produces: how often
gen.optionalyields absent, how deepgen.recursivenests, whethergen.floatever hits an edge value. Hedgehogclassify/cover, fast-checkstatistics, Hypothesisevent/targetall exist for this reason, and it is the only cheap way to verify #2 / #3 / #5 behave as intended.Suggested shape
label (v: "depth=${toString (depth v)}") prop.Report.labels = { "<label>" = count; }.coveradds a required minimum; failing coverage fails the check (Hedgehog semantics).caseslist with #1 / the replay issue.Implemented in
c9f6ec5, pushed to main.