Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

EventSourceTestKit issues, tips, tricks?

$
0
0

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.

  1. It’s not clear to me how to provide an initial state to the test kit?
  2. 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)
  3. 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?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles