Background
I am running a few tests and I want to make sure a process of mine receives a given message. Now the tests are failing, because assert_receive
tells me I didn’t receive the proper message and then it shows me the last 10 messages.
Problem
But I don’t want to see the last 10, I want to see them all so I can pick the one I am interested in.
Question
- How can I make
assert_receive
show me all messages in the process mailbox when the assertion fails? - If this is not possible, is it possible to have access to the process mailbox before the assert concludes and fails the test ?