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
Labels
enhancement ✨
Suggestions for adding new features or improving existing ones.
Milestone
Comments
sksamuel
added
enhancement ✨
Suggestions for adding new features or improving existing ones.
potential
labels
Feb 16, 2019
sksamuel
changed the title
Expand withClue with automatic support for classes
Better toString with automatic support for Show for classes
Feb 22, 2019
I've done this already. Need to add docs for it @Kerooker |
@sksamuel Is it possible to create a custom Show implementation and have Kotest use it? |
@xerus2000 at the moment they are hard coded because I am not sure of a way to have discovery that works on MPP. |
well, how about registering it in a |
Can't use those as they are framework specific and assertions works outside
of kotest too.
But the general idea is a good one - we can allow registration on some kind
of Shows object.
…On Wed, 27 Jan 2021 at 03:54, Janek ***@***.***> wrote:
well, how about registering it in a ProjectConfig or
ProjectListener#beforeProject?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#662 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGVBE6RTZ2OSVOOUJL3S37PFRANCNFSM4GX4XBRQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: