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

Option to pretty-print test failures #128

Open
eigenhombre opened this issue Mar 21, 2015 · 1 comment
Open

Option to pretty-print test failures #128

eigenhombre opened this issue Mar 21, 2015 · 1 comment

Comments

@eigenhombre
Copy link

It'd be awful nice if the should family could be made to pretty-print the contextual data it shows.

E.g.

1) org-parser can handle double newlines in body
Expected: [[:document [:body "part a\n\npart b\n"]]]
      got: ([:document [:body "part a\n\npart b\n"]] [:document [:body "part a\n"] [:body "\npart b\n"]] [:document [:body "part a\n\n"] [:body "part b\n"]] [:document [:body "part a\n"] [:body "\n"] [:body "part b\n"]] [:document [:body "part a\n"] [:body "\n"] [:body "part b\n"]] [:document [:body "part a\n"] [:body "\npart b\n"]] [:document [:body "part a\n\n"] [:body "part b\n"]] [:document [:body "part a\n\npart b\n"]]) (using =)

Would be instead:

    1) org-parser can handle double newlines in body
Expected: [[:document [:body "part a\n\npart b\n"]]]
      got:   ([:document [:body "part a\n\npart b\n"]]
              [:document [:body "part a\n"] [:body "\npart b\n"]]
              [:document [:body "part a\n\n"] [:body "part b\n"]]
              [:document [:body "part a\n"] [:body "\n"] [:body "part b\n"]]
              [:document [:body "part a\n"] [:body "\n"] [:body "part b\n"]]
              [:document [:body "part a\n"] [:body "\npart b\n"]]
              [:document [:body "part a\n\n"] [:body "part b\n"]]
              [:document [:body "part a\n\npart b\n"]])
      (using =)
@thesoftwarephilosopher
Copy link
Contributor

Good idea! We talked about this briefly before in #45 and considered using https://github.com/brandonbloom/fipp, but that library turned out not to be a good fit for our requirements. Maybe there's another existing Clojure pretty-printer out there somewhere we can use? Otherwise, it doesn't seem hard to write a pretty-printer ourselves, so perhaps we should just write one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants