Chapter 3. Test-driven development with actors
In this chapter
- Unit testing actors synchronously
- Unit testing actors asynchronously
- Unit testing actor messaging patterns
It’s amusing to think back to when TDD first appeared on the scene—the primary objection was that tests took too long, and thus held up development. Though you rarely hear that today, there’s a vast difference in the testing load both between different stacks, and through different phases (such as unit versus integration tests). Everyone has a rapid, fluid experience on the unit side, when testing is confined to a single component. Tests that involve collaborators are where ease and speed generally evaporate rapidly. Actors provide an interesting solution to this problem ...