Akka provides a useful feature for integration testing called the EventFilter
. This enables assertions to be made on log messages. I love this feature as it gives me confidence that the correct log messages are being generated and if my system starts struggling in production, I will have the necessary information to quickly understand the problem.
Recently, however, I came across an issue which took away much of the confidence I had in these tests.