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

Pretty assertion printing #1

Open
brendanzab opened this issue Sep 11, 2017 · 1 comment
Open

Pretty assertion printing #1

brendanzab opened this issue Sep 11, 2017 · 1 comment

Comments

@brendanzab
Copy link

pretty-assertions gives some really nice, colourful diffs when printing out assertion failures using the difference crate:

pretty assertion screenshot

I'm wondering how hard it would be to add these to galvanic-assert? Would make for some nice screenshots of your own!

@mindsbackyard
Copy link
Owner

Definitely on the list for a future version. Although the difference output would need to be coded for each matcher. Some matchers (especially the collection matchers) have already customized error output (though no colours). In such cases the more specialized output might be more suitable than a generic diff. Ideally I'd like to be able to switch output formatters, so you could choose your format, e.g., when logging to a file you wouldn't like to have terminal colour codes in the output.
I'm open for suggestions.

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