September 2019
Intermediate to advanced
462 pages
11h 3m
English
Code always does what we type and not what we meant, and that’s true in statically typed languages as much as in dynamically typed languages. The Kotlin compiler’s rigorous verification will substantially reduce errors that may occur in code. But, as the application evolves, it’s our responsibility to verify that code continues to work as intended.
Manually running the code to verify if everything works as expected is expensive, time consuming, and in itself error prone. Automated testing is one of those steps that takes time but, in turn, results in saving significant time in the long run. Unit testing is a part of automated testing and, in this chapter, we’ll look at how to write unit tests for code written ...
Read now
Unlock full access