~/talk

An overview of property testing in Haskell

Talkat f(by) 2020 · on Saturday, 2020-01-25· [haskell, testing]
slides:none on file

Property testing in Haskell compares QuickCheck, Hedgehog and Validity (plus QuickSpec, EasySpec, speculate, leanspec, smallcheck) and argues concrete tradeoffs: QuickCheck arbitrary lacks laws and forces custom shrinking and awkward newtypes, Hedgehog gives automatic shrinking but costs more boilerplate and duplicated generators, while Validity derives generators and correct shrinking from Generic so you get tests for JSON, lenses and typeclass laws with three lines of code. Claims include a startling 70% of programmers never write tests and shows validity-based testing working in production.

AI-written summary · about

  1. 0:00The challenges of testing
  2. 2:07Introduction to property test
  3. 3:33Generators and shrinking
  4. 5:36QuickCheck and its limitations
  5. 11:51Hedgehog testing library
  6. 15:01Validity-based testing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.