March 2025
Intermediate to advanced
202 pages
4h 45m
English
So far, you’ve written tests that ensure that aggregates do what they’re supposed to, that projectors behave properly, and that process managers issue the right commands. The next step up is to test the choreography of the complex dance that’s an event-sourced application.
A common mistake in writing acceptance or integration tests (the debate over these categories, their names, and what belongs in them will continue until the end of time) is testing too much. If you already know that your aggregate produces the right events, do you also need to write a higher-level flow test that ensures that you have the right events?
It’s worth taking a step back and looking at why you need holistic flow tests. Firstly, ...
Read now
Unlock full access