This chapter focused on how Kotlin can be leveraged to write cleaner and more readable tests. We saw the popular KotlinTest framework in action and how it can be extended to fit your use cases. KotlinTest is continually being improved, so it is worth checking out the readme files on the GitHub website for new features that have been added since the date of its publication.
Programming Kotlin
Programming Kotlin
Overview of this book
Quickly learn the fundamentals of the Kotlin language and see it in action on the web. Easy to follow and covering the full set of programming features, this book will get you fluent in Kotlin for Android.
Table of Contents (20 chapters)
Programming Kotlin
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
Getting Started with Kotlin
Kotlin Basics
Object-Oriented Programming in Kotlin
Functions in Kotlin
Higher Order Functions and Functional Programming
Properties
Null Safety, Reflection, and Annotations
Generics
Data Classes
Collections
Testing in Kotlin
Microservices with Kotlin
Customer Reviews