~/talk

Domain Invariants & Property-Based Testing for the Masses

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [testing, frontend-architecture]
github:malk
slides:none on file

Argues that property‑based testing works on legacy, non‑FP stacks (demonstrated in Java 6) by writing generators for custom domain objects and wiring them to existing xUnit assertions; shows concrete examples (bowling scorer, prescriptions, GPS coords), builds generators by copying test fixtures, and runs randomized runs with configurable tries. Uses shrinking to minimal counterexamples so failures are actionable; finds real surprises (male patient flagged as pregnant), exposes hidden invariants, and integrates PBT for characterization and domain‑rule tests.

AI-written summary · about

  1. 0:00Start
  2. 0:19What Is a Property
  3. 1:25What Is an Invariant and What Is a Tautology
  4. 4:44Test-Driven Development
  5. 19:13Contract Programming
  6. 29:37Property Based Testing
  7. 41:36Integration 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.