Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix state-flow pretty-printing for :actual in test result #163

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

michaelweisser
Copy link
Contributor

image

Due to a change in cider-nrepl ( clojure-emacs/cider-nrepl@dff71aa ), emacs cider wasn't printing the "actual" part of a matcher combinator result correctly. This can be seen on the right side of the screen shot. Cider includes :summary ... which shouldn't appear. The output as it should be can be seen on the left.

With this patch, we are using matcher-combinator's meta tag for mismatches. This way, cider-nrepl will use the dispatching print function and the "actual" section of the test result will be pretty-printed as usual.

Fixes https://nubank.atlassian.net/browse/DEV-471

Using a custom tag resulted in problems in cider because of this
change:

clojure-emacs/cider-nrepl@dff71aa
@lednubr
Copy link
Contributor

lednubr commented Feb 1, 2022

Same error ocurring (before the patch) in calva/vsscode

image

and is fixed on new version

image

@michaelweisser michaelweisser merged commit a9ad09b into master Feb 1, 2022
@michaelweisser michaelweisser deleted the fix-match-for-cider branch February 1, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants