Improve ExUnit output for assertions on process mailbox

82 views
Skip to first unread message

Devon Estes

unread,
Jun 21, 2017, 2:53:03 PM6/21/17
to elixir-lang-core
A friend of mine brought up a good potential feature on Twitter, and since he doesn't seem to have done anything to bring it to everyone's attention, I wanted to make sure it was brought up.

Would it be possible to add some sort of more helpful output in ExUnit when you're asserting a process receives a certain message in its mailbox? If you check out the photo in his tweet, it's pretty difficult to see what the differences are between the expected message and the received message. Here's the link to the tweet: https://twitter.com/bradurani/status/874156094897045504

I'd be happy to help with implementation if folks think this is a good new feature to add.

Thanks!
Devon

José Valim

unread,
Jun 22, 2017, 4:22:56 AM6/22/17
to elixir-l...@googlegroups.com
Yes, it is a good feature to add. Please open up an issue and contributions are also welcome. Although I should this is a mildly complex feature to implement. Today we are only able to perform diffs against data-structures and this would require performing diffs against patterns.




José Valim
Skype: jv.ptec
Founder and Director of R&D

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/1a9d35ec-1167-4665-9fed-436053ac5633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages