~/talk

SCALATEST: YOU'RE ASSERTING IT WRONG

Talkat Scalar 2019 · 2019-04-05..04-06· [testing, scala]
slides:none on file

Shows concrete ScalaTest idioms that give clearer failures: use OptionValues/EitherValues (callable as value) instead of .get to get readable messages and failure locations, compare collections with loneElement or sameElements and use inspectors’ forAll/forEvery to report failing indexes, prefer FutureValue with implicit patience (default 150ms, IntegrationPatience = 15s) or async specs but avoid blocking on the serial execution context (deadlock), and use intercept/thrownBy/should have message for asserting exceptions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Options
  3. 6:32Collections
  4. 14:34Futures
  5. 21:06Exceptions
  6. 24:01Data Tables
  7. 27:34Questions
~/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.