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