Hey, I'm getting started with kotlin and was wonde...
# getting-started
p
Hey, I'm getting started with kotlin and was wondering if there are any kotlin specific test assertion libraries like there is assertj for java? Builders seem like they would enable something interesting like
Copy code
assert("asdf") {
  hasSize { it isEq 4 }
}
k
The Kotest Assertions Library works quite well for assertion syntax that is idiomatic to Kotlin.
n
assertk: Github Webpage
p
Thanks @Klitos Kyriacou kotest looks like what I was looking for.
t
#kotest for you then 🙂
e
m
also Atrium has just the feature you described in the example: assertion groups
d
Or continue with assertJ or junit asserts. There is no need to make assertions overly kotlin-ish