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.
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.
- How can I make
assert_receiveshow 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 ?