~/talk

Testing for Lawful Good Adventures

Talkat LambdaConf 2018 · 2018-06-03..06-05· [testing]
links:none on file
slides:none on file

Shows concrete law testing: implements Monoid for Pair[Int] and Monad for a homegrown Option, wires up Arbitrary and Eq, then runs ScalaCheck-backed suites (ScalaZ uses ScalaCheck, cats uses discipline) and checks 100 random cases per law. Property testing generates biased inputs, finds failures and returns a minimized counterexample. Demonstrates what to implement (Arbitrary, Eq, typeclass instance), how tests are invoked (checkAll / discipline), and when an implementation actually fails.

AI-written summary · about

  1. 0:00Start
  2. 2:46Overview
  3. 7:26Review of the Type Class Pattern
  4. 11:51Substitution Method
  5. 12:37Property Testing
  6. 13:41Test Case Minimization
  7. 14:01Generating Random Data
  8. 30:35Takeaways
~/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.