Tuesday, October 18, 2016

Testing your Akka.NET system using EventFilter

Although Akka.NET has built-in support for testing, it is sometimes hard to find out what’s really going on inside your actor system.

A useful feature that can help you solve this problem during integration testing is the EventFilter. The EventFilter is a tool to verify that actors write certain log messages. It can also detect if messages go to DeadLetters and if certain exceptions are thrown.

2 examples:

Remark: By default the event filter searches for exact matches.

No comments: