bnorm
08/22/2024, 2:45 PMCLOVIS
08/22/2024, 2:54 PMassertTrue(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…).