Best Practices for Unit Testing in Kotlin
Posted on Feb 12, 2018
![Best Practices for Unit Testing in Kotlin](/blog/2018/0212-best-practices-unit-testing-kotlin/featured-image-small.png)
Unit Testing in Kotlin is fun and tricky at the same time. We can benefit a lot from Kotlin’s powerful language features to write readable and concise unit tests. But in order to write idiomatic Kotlin test code in the first place, there is a certain test setup required. This post contains best practices and guidelines to write unit test code in Kotlin that is idiomatic, readable, concise and produces reasonable failure messages.