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 and response by making use of these testing libraries.
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine