An overview of property testing in Haskell
summary
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
