Chapter 8. Testing RxKotlin Applications
We have covered more than 60% of the book and have learned a lot of concepts. From the first chapter, starting with concepts of reactive programming till the previous chapter about concurrent execution and parallelism. But we cannot complete the application development without introducing a few tests. It is probably the most crucial point in the process of application development.
This chapter is dedicated to testing. As Kotlin itself is relatively new, our first objective would be to learn testing in Kotlin. We will then proceed with testing in RxKotlin. The following are the topics we are going to cover in this chapter:
- Introduction to unit testing and its importance
- Kotlin and JUnit, Kotlin-test
- Testing tools in RxKotlin
- Blocking subscribers
- Blocking operators
TestObserver
andTestSubscriber
So let's get started.