~/talk

Property Based Testing, By Example

Talkat J-Fall 2015 · on Thursday, 2015-11-05· [testing, functional-programming]
links:none on file
links:none on file
links:none on file
slides:none on file

Demonstrates property-based tests for a menu-sorting example using QuickCheck family tools (jsverify for JavaScript, ScalaCheck on the JVM) that generate random records and reveal edge cases — an early failure shrinks to a single-space string showing a sorting bug on empty or tiny names. Shows generators for nested records, grouping-by-course implementation driven from failing properties, and practical tradeoffs: generator design takes time but yields many realistic failures and shrinking pinpoints minimal counterexamples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49What is property based testing
  3. 6:01Tools and frameworks
  4. 12:34Generating random data
  5. 24:08Testing sorting logic
  6. 33:29Refactoring and grouping
  7. 45:01Properties in production
  8. 51:06When to use property based testing
  9. 52:10Q&A
~/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.