When choosing to integrate Kotlin into an existing code base, there are generally two approaches. The first is the jump right in and write production code using Kotlin approach. The other is to start integrating Kotlin through test code. In this chapter, we'll explore the pros and cons of a test-first integration plan, examine how testing with multiple languages can improve interop, and see how Kotlin DSLs can actually make testing easier.
This chapter is structured as follows:
- Understanding the pros and cons of integrating Kotlin via a testing-first approach
- How writing production code and tests in different languages can improve the overall interop experience
- Exploring how the available testing DSLs make testing easy in Kotlin