Summary

RxTest, RxBlocking, and other related libraries provide amazingly streamlined testing of operations in RxSwift. In this chapter, we covered some basic examples of how to write unit tests in RxSwift using these two libraries. You might have noted the ease with which you can test the code and also how and why you can skip checking the options before making use of them in your unit tests. These tests are part of your code to ensure that the app behaves as per expectations and does not break in production. For those who prefer test-driven development, this chapter has laid down the foundation on which you can build amazing test targets. In upcoming chapters, we will cover how to write networking code in RxSwift and how to test the request ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.