Looking for a little feedback if people are willin...
# power-assert
b
Looking for a little feedback if people are willing to share! ✍️ For those that are using power-assert: 1. What functions do you most often configure for power-assert transformation? 2. What source sets do you most often configure for power-assert transformation?
c
After playing a bit with multiple assertion functions, it really didn't feel right to use
assertTrue(Boolean)
with a complex expression. Since
assert
can't be used (since it's conditional and doesn't smart-cast), I started using
kotlin.check
in my tests, and I'm fairly happy with it. You can find my config here: https://gitlab.com/opensavvy/automation/gradle-conventions/-/blob/main/kotlin/src/main/kotlin/library.gradle.kts?ref_type=heads#L16-L32 At the moment, I only use power-assert in test sets (unit tests, cucumber tests…).