Fork me on GitHub
#matcher-combinators
<
2023-01-29
>
Ben Sless05:01:26

In CIDER, when an is comparing two maps fails I get a diff report between the two Is there something similar which walks the combinators and reports the errors structurally?

Phillip Mates13:01:09

do you mean you only want to see the differences and leave out all other data or have it elided with ..? Maybe some screenshots of what CIDER does in this case would help me understand what it does

Ben Sless11:01:23

Same expected and actual, once with is, once with match?

👍 2
Phillip Mates11:01:58

nice, thanks! This doesn't exist in matcher-combinators but it could probably be added fairly easily and then there could be a configured of how the test failure passed to clojure.test. Alternatively one could wrap the test runner that displays the clojure.test results to do such a traversal (like as a tool outside of the lib itself)

Phillip Mates11:01:14

I can try to play with it a little sometime soon

Ben Sless11:01:22

Appreciate it, thanks!