Practical ScalaCheck
summary
Shows concrete Scalacheck recipes: when to use Gen vs Arbitrary, why Cogen makes generated functions meaningful (ScalaCheck 1.11.3), how shrinking and collect/labels expose minimal failing cases, and why prefer custom generators to implication. Gives the exact surprising defaults (100 tests, shrink behavior), how to raise counts (sbt to 1_000_000), boilerplate reduction via scalacheck‑shapeless, refined and a 47degrees date generator that produces sensible ranges for Joda and java8 datetime.
AI-written summary · about
chapters (4)
related talks
01h 00mA New Approach to Testing with ScalaCheck / Property Based Testing
27mRANDOM DATA GENERATION WITH SCALACHECK
31mProperty-based testing - let your testing library work for you
46mTesting in the world of Functional Programming
41mBuilding test check Generators
36mTesting for Lawful Good Adventures
47mSpecs2, from starters to dessert and... a look in the kitchen.
31mSCALATEST: YOU'RE ASSERTING IT WRONG
