-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi David and Daniel,
First of all, thank you for this great package! Building a Event Sourced application is new for us, but your package and blog is one of the great resources we use to learn about ES.
About testing I see a lot about unit testing, but not so much about feature tests. We are used to write feature tests a lot, because it always seemed to be more efficient: "one test to rule them all" 😉 But we are focusing more on the unit tests as well now. Mainly because to show the value that is gained in every (little) added code. Also to be able to build upon written code with confidence that we do not break things.
Still, we would like to use feature tests as well. Here I get in trouble a little bit, because of how to setup a database with data (fixture), to test a feature that will manipulate this data. In terms of Laravel: how to use factories to produce reusable test data, but now in a Event Sourced application?
How is feature testing be done in ES, where the source of truth is the event store. Can I seed an event store, or a projection before testing? Do we need to take a different approach perhaps?
Greetings 👋