I’ve started using the EventSourceTestKit to unit test interactions with a persistent entity.
I’ve run into a few issues, that perhaps the community can advise on.
- It’s not clear to me how to provide an initial state to the test kit?
- Sending multiple messages to the same EventSourceTestKit instance doesn’t seem to accumulate state? (This wouldn’t be a problem if I could provide a starting state)
- When I’m testing a message pathway that has the Effect of stopping the entity, the EventSourceTestKit stops working. (As a workaround I’m avoiding stopping the actor when invoking tests, but that feels wrong/dirty.)
Aside from help with the above, anyone have tips/tricks to mention about testing with the EventSourceTestKit?