~/talk

An Introduction to Property-based Testing

Talkat Developer Summit 2020 · 2020-11-21..11-22· [testing]
name:Paul King
links:none on file
slides:none on file

Shows how jQu annotated property tests and Spock Genesis generators replace dozens of examples by generating and checking thousands of cases (he runs 1,000 random cases). Demonstrates a real bug: an else-based compare misses a case and is fixed with min/max logic; shrinking reduces failures to small inputs like 0 -99 -98; switching shorts to ints exposes integer overflow so the oracle is adjusted. Includes a GitHub repo of Java/Groovy examples and concrete generator patterns and assertions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49What is property testing
  3. 8:24Motivating example
  4. 15:45How property testing works
  5. 22:09Temperature converter example
  6. 30:11Teasing out properties
  7. 39:05Beyond unit tests
  8. 52:10Acceptance testing benefits
  9. 53:58Summary and key takeaways
~/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.