~/talk

Generative Testing: Properties, State and Beyond

Talkat EuroClojure 2015 · 2015-06-25..06-26· [testing]
links:none on file
slides:none on file

Demonstrates using Clojure test.check (gen/sample, such-that) to run 1,000 random trials and catch a divide-by-zero and a floating-point equality failure (example inputs 23 and 21), then uses shrinking to produce minimal failing cases; shows a real rewrite at Stylefruits where a single property-based testing property uncovers many routing regressions; introduces stateful testing with the states library (commands/run-commands, model vs. system) to find a conjoin/pop bug; points to Jepsen-style concurrent sequences for automated race-condition detection.

AI-written summary · about

  1. 0:00Introduction
  2. 0:35Testing culture
  3. 0:57Why test things automatically
  4. 1:37Example Division
  5. 3:12QuickCheck
  6. 4:14TestsCheck
  7. 5:39Generator
  8. 8:38Reverse
  9. 9:20Reverse Implementation
  10. 15:25Use Cases
  11. 17:25State
  12. 19:05Example
  13. 30:13Conclusion
~/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.