~/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 success using Hedgehog yields concrete patterns: one-line round-trip tests catch Unicode and codec bugs; idempotence checks expose PUT/auth race issues; associativity/commutativity-style tests reveal caching and ordering flaws. A Postgres-backed task/job queue and a Wai/Servant web API get validated by comparing DB results to a simplified in-memory model, plus an audit-log-driven stress test that asserts no double-locked jobs, eventual job attempts, and no concurrent pickups. About 80–90 Haskell projects show most PBT use stays trivial.

AI-written summary · about

  1. 0:00Start
  2. 8:20Example-Based Tests
  3. 10:38Round Tripping Tests
  4. 21:06Associativity
  5. 28:40Implement a Simplified Model of the System under Test
  6. 39:17Example Based Tests
~/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.