Hi, are there any plans to add `@DisplayName` and ...
# test
r
Hi, are there any plans to add
@DisplayName
and
@Nested
to the kotlin.test core annotations list? I find these annotations useful when writing JUnit tests in Kotlin/JVM.
@DisplayName
-- Because Kotlin/JS does not support spaces in backtick function names, and Kotlin/native does not allow parenthesis having a
@DisplayName
annotation allows for a more readable test name (and the ability to specify the class description).
@Nested
-- I often find it useful to use this in my tests, especially to group different partitions or use cases for the thing under test. For example, testing a "to list" or "list of" method with zero, one, and many items.