~/talk

Random Data Generation With Scalacheck

Talkat Scala Italy 2018 · 2018-09-14..09-15· [functional-programming]
slides:none on file

A small library generates random fixtures from case classes using ScalaCheck and shapeless derivation, then swaps shapeless for Magnolia to cut compile time from ~1500s to ~300s; it takes four lines of code to get a generator, finds real bugs in integration tests, and prints a reproducible seed for determinism so failing inputs can be replayed. Uses ScalaCheck + Shapeless -> Magnolia and works in production test suites.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:31Unit vs integration tests
  3. 5:21Scalacheck basics
  4. 7:25Scalacheck limitations
  5. 9:10Startup constraints
  6. 10:57Random fixtures solution
  7. 13:52Deterministic testing
  8. 16:18Library implementation
  9. 20:21Handling non-case classes
  10. 22:13Smart data generation
  11. 24:03Compilation time issues
  12. 25:11Magnolia introduction
  13. 26:54Performance improvements
  14. 27:37Magnolia library
  15. 29:02Shapeless vs Magnolia
  16. 29:23Key takeaways
  17. 32:16Testing philosophy
  18. 33:23Q&A session
~/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.