Method names of test cases can get pretty long and hard to read. There are tricks to improve the readability of tests, such as separating names into sections with underscores, or utilizing Kotlin and backticks to write out entire sentences.
In this lesson, we'll discover the
@DisplayName annotation as a compatible and clean alternative to provide a descriptor for test methods and classes, and discuss some best practices for good method naming.
@DisplayNameon a test method to give it a prettier name
@DisplayNamealso works on classes