~/talk

Practical ScalaCheck

Talkat Scala.IO 2016 · 2016-10-27..10-28· [testing]
slides:none on file

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

  1. 0:00Start
  2. 16:47The Arbitrary Typeclass
  3. 20:39Testing Winning Hands
  4. 41:31Using scalacheck-shapeless
~/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.