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

Better toString with automatic support for Show for classes #662

Closed
sksamuel opened this issue Feb 16, 2019 · 6 comments
Closed

Better toString with automatic support for Show for classes #662

sksamuel opened this issue Feb 16, 2019 · 6 comments
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones.
Milestone

Comments

@sksamuel
Copy link
Member

sksamuel commented Feb 16, 2019

Possibly something along the lines of this:
https://github.com/npryce/hamkrest/blob/master/docs/describe.md
http://joel-costigliola.github.io/assertj/assertj-core-features-highlight.html#custom-representation

We could use Show from Arrow.
https://arrow-kt.io/docs/apidocs/arrow-typeclasses/arrow.typeclasses/-show/index.html

@sksamuel sksamuel added enhancement ✨ Suggestions for adding new features or improving existing ones. potential labels Feb 16, 2019
@sksamuel sksamuel added this to the 3.4 milestone Feb 16, 2019
@sksamuel sksamuel mentioned this issue Feb 16, 2019
88 tasks
@sksamuel sksamuel changed the title Expand withClue with automatic support for classes Better toString with automatic support for Show for classes Feb 22, 2019
@sksamuel
Copy link
Member Author

I've done this already. Need to add docs for it @Kerooker

@sksamuel sksamuel mentioned this issue Jul 13, 2019
39 tasks
@xeruf
Copy link
Contributor

xeruf commented Jan 26, 2021

@sksamuel Is it possible to create a custom Show implementation and have Kotest use it?

@sksamuel
Copy link
Member Author

@xerus2000 at the moment they are hard coded because I am not sure of a way to have discovery that works on MPP.

@xeruf
Copy link
Contributor

xeruf commented Jan 27, 2021

well, how about registering it in a ProjectConfig or ProjectListener#beforeProject?

@sksamuel
Copy link
Member Author

sksamuel commented Jan 27, 2021 via email

@sksamuel
Copy link
Member Author

#2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones.
Projects
None yet
Development

No branches or pull requests

2 participants