-
Notifications
You must be signed in to change notification settings - Fork 15
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
Kotest assertions support #65
Comments
Hello! I don't use Kotest so support for its assertions hasn't been on my radar. Stepping back from the original question a bit: what's the end goal? If Kotest isn't providing enough diagnostic information when an assertion fails, that seems like an issue with Kotest. And one of the primary goals of this compiler plugin is to avoid needing a complex assertion library in the first place. Ultimately I'm curious to know your use case for combining these 2 libraries and what benefits you think |
If I may chime in here as another Kotest user: Currently, Kotest's output when asserting equality of data classes (which may contain other data classes) is quite limited. Basically, it just asserts that the So it would be nice to be able to leverage |
Functions with receivers (infix or not) are supported (#68), so all Kotest would need to do is add overloads which also take a string as the last parameter. Then kotlin-power-assert could transform Kotest assertions. See the tests here for an example. Explicit support of Kotest is not within the scope of this plugin, so closing as "not planned". As for the data class example, I think that falls under #76, as we could diff data classes intelligently if we new their equals function wasn't custom. |
Hi! Thanks for the awesome plugin!
Is Kotest assertions support planned somewhere in the future?
The text was updated successfully, but these errors were encountered: