~/talk

ScalaTest: you're asserting it wrong

Talkat Devoxx Poland 2021 · 2021-08-25..08-27· [testing, scala]
slides:none on file

Shows concrete ScalaTest techniques: use optionValues/eitherValues instead of .get to get clear failure locations, prefer inspectors (forAll/forEvery) to show which collection elements fail, use futureValue timeout 150ms default or mix in integrationPatience (15s) and avoid blocking on async suites because the async serial execution context can deadlock, use tableDrivenPropertyChecks to label failing rows, and factor setup/teardown into fixtures to remove repeated boilerplate.

AI-written summary · about

  1. 0:00Introduction to ScalaTest
  2. 3:19Asserting on Options and Eithers
  3. 11:04Asserting on Collections
  4. 24:07Testing Async Code with Futures
  5. 34:26Asserting on Exceptions
  6. 39:44Data Tables for Multiple Test Cases
  7. 45:48Avoiding Boilerplate with Fixtures
  8. 51:47Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.