~/talk

A New Approach to Testing with ScalaCheck / Property Based Testing

TalkinFrenchat Scala.IO 2014 · 2014-10-23..10-24· [testing]
links:none on file
slides:none on file

ScalaCheck is presented as a property-based testing tool that runs hundreds to thousands of randomized cases and automatically shrinks failing inputs to minimal counterexamples. The talk covers writing properties (e.g., max on lists, monoid/monad laws), building and combining custom generators with weights and labels to inspect input distributions, and integrating tests with sbt/specs2 so failures yield reproducible seeds instead of opaque examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Traditional test limits
  3. 3:26Property based testing
  4. 8:19ScalaCheck properties
  5. 10:10ScalaCheck test example
  6. 13:18Generators creation
  7. 17:24Generator transforms
  8. 20:29Collection generators
  9. 23:03Generator weights
  10. 27:11PBT domains
  11. 29:35PBT restrictions
  12. 32:13Debugging counterexamples
  13. 35:07Sorted lists properties
  14. 38:05Unit test integration
  15. 39:34Monoids laws
  16. 40:43Monoid integers example
  17. 42:29Associativity identity laws
  18. 45:04String monoids
  19. 46:37Monoid products
  20. 48:15Parallel execution
  21. 50:06Function comparisons
  22. 51:36ScalaCheck benefits
  23. 54:13Integer overflow checks
  24. 55:37Migrating to PBT
  25. 57:11Q&A
~/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.