~/talk

Building test check Generators

Talkat Clojure/conj 2017 · 2017-10-12..10-14· [testing]
slides:none on file

Practical guide to building test.check generators using core combinators (elements, fmap, bind, let macro), the size parameter (0–200) heuristic, and helpers like sample/generate, recursive and scale/frequency utilities. Shows a working recursive generator for nested directories plus a gen that emits vectors of file-append changes, replaces failing such-that with fmap to avoid rejection, and uses no-shrink for UUIDs. Explains bind vs fmap tradeoffs for composing generators and why bind makes shrinking harder but the composed generators still produce usable failing examples.

AI-written summary · about

  1. 0:00Start
  2. 1:30Roadmap
  3. 2:49Basic Data Generators
  4. 7:43Value Proposition
  5. 8:14Universality & Purity
  6. 11:57Example collection-and-element
  7. 14:23Example a 2d matrix
  8. 24:58Summary: Building Things
  9. 26:27What does size mean eactly?
  10. 27:58string vectors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.