~/talk

Unlock The Power Of Property-Based Testing

Talkat LambdaConf 2024 · 2024-05-04..05-10· [testing]
links:none on file
slides:none on file

Claims that property-based testing generates many inputs to catch bugs that handcrafted examples miss and reduces maintenance by shrinking failures to minimal cases. Uses Clojure examples with custom email and integer generators, requests 1,000 examples but observes a failure after 15 and finds a minimal failing input via generators and shrinking that reveals a name truncation bug (code limited to 10 chars) which is fixed. Notes performance tradeoffs — roughly 200 ms for 10,000 iterations.

AI-written summary · about

  1. 0:00Property-based testing intro
  2. 1:05Example-based tests limits
  3. 3:12Manual test limits
  4. 5:40Moving to property-based
  5. 7:47Realistic example
  6. 9:37Auto test inputs
  7. 10:19Understanding generators in depth
  8. 12:47Failure analysis
  9. 14:12Debug smallest failure
  10. 15:36Extending tests across stack
  11. 15:58Why shrinking matters
  12. 16:42PB testing challenges
  13. 17:25Time and complexity
  14. 18:06Tooling and language support
  15. 19:09Conclusion 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.