~/talk

Property-Based Testing - Examples from Business Applications

Talkat Agile India 2020 · 2020-10-11..10-18· [testing]
links:none on file
slides:none on file

Journey from failing with QuickCheck to practical success with Hedgehog: property tests target a Postgres-backed task/job queue and a small Wai/Servant web app. Round‑trip JSON tests expose a surprising Unicode handling bug in the API pipeline. Search‑and‑sort queries are validated by comparing DB results to an in‑memory simplified model, catching ordering/aggregation errors. Job‑runner properties assert things like no job locked after graceful shutdown, every job is attempted, no double pickup, and concurrency limits are respected.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20About Saurabh
  3. 2:36Infrastructure
  4. 4:46Hedgehog Library
  5. 4:58How do you write properties
  6. 7:22Reverse list twice
  7. 7:47Properties in real life apps
  8. 8:08PropertyBased vs ExampleBased
  9. 10:36Round tripping
  10. 20:25Associativity and Commutativity
  11. 25:45No Property Test
  12. 27:31Comparing Against Another System
  13. 28:35Implement a Simplified Model
  14. 28:55Simplifying Stateful Systems
  15. 29:34Indepth Example
  16. 29:54Quick Overview
  17. 30:18Job Filtering
  18. 31:27Filtering
  19. 33:35Simplifying
  20. 33:57Job Monitor
  21. 40:22metered usage
  22. 40:56other resources
~/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.