~/talk

Async Testing on the JVM and Scala.js

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [testing]
slides:none on file

ScalaTest 3.0 implements nonblocking tests by making test bodies return Future[Assertion] and adding async variants like AsyncFunSuite; assertions and matchers now return an Assertion marker, with new APIs such as recoverToExceptionIf/recoverToSucceededIf for exception testing and completeLastly for async cleanup. Scala.js forces this design because JavaScript cannot block, so a serial execution context and FutureOutcome wrapper coordinate callbacks. Migration requires a few breaking changes (withFixture moved down, timeLimits replacing timeouts) and the async approach works across JVM and JS.

AI-written summary · about

  1. 0:00Introduction
  2. 3:38The three rules
  3. 5:34The JavaScript bug
  4. 8:08Scala test implementation
  5. 11:08The impedance mismatch
  6. 16:15Inspectors in scale tests
  7. 27:18Puzzle
  8. 27:53Execution Context
  9. 29:25Override App
  10. 34:16Breaking Changes
  11. 37:43Questions
~/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.