Async Testing on the JVM and Scala.js
summary
ScalaTest 3.0 implements non‑blocking tests that return Future[Assertion] (Assertion is a type alias for the Succeeded singleton), adds Async suite traits (e.g. AsyncFunSuite), and changes withFixture to use FutureOutcome so cleanup can wait via a new completeLastly helper. It ships a default serial execution context* that serializes async maps and deliberately blocks on the JVM (JS cannot block), introduces recoverToExceptionIf/recoverToSucceededIf for async exceptions, and is available as RC1 after a year of JVM↔JS porting.
AI-written summary · about
chapters (5)
- 0:00Start
- 4:33Reasons for Blocking Your Tests
- 34:07Questions
- 36:00Parallel Test Execution
- 38:14Implicit Execution Context








