Advantages
Perhaps the biggest advantage of integrating Kotlin using a test-first approach is that it's safe. You're not slowing down feature development through migration or refactoring and you're not shipping a new language to production users; it frees your team so that they're able to try the language without much impact on what is actually shipped.
One benefit of writing tests with Kotlin is that it can help expose stability and interop issues in your Java and Kotlin code. By exercising your code through tests, you can ensure you're using language features correctly and examine how they work from both Java and Kotlin. This can illuminate where you want to modify and how you write your code based on whichever level of interop support ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access