Please log in to watch this conference skillscast.
Writing reliable tests is not easy for many reasons, especially when asynchronous code is involved. Some libraries can be used to create a testable architecture (for example Dagger and RxJava) and to simplify testing (Mockito, AssertJ and DaggerMock). In this talk you'll learn how to write JVM and Espresso tests with particular attention on how to replace real objects with mocks and how to test asynchronous RxJava code. In this talk, you will also explore:
- how to take advantage of Mockito and other libraries to write good JVM and Espresso tests in both Java and Kotlin
- how to use DaggerMock (an open source library available on github to avoid boilerplate code in tests
- how to test asynchronous RxJava code using a JVM test
YOU MAY ALSO LIKE:
- Android Data Binding in action using MVVM pattern (SkillsCast recorded in October 2016)
- Android Architecture with Jorge Ortiz-Fuentes (Online Course on 22nd - 24th February 2021)
- Practical Property Testing (SkillsCast recorded in November 2020)
- Accessibility in Flutter (SkillsCast recorded in August 2020)
Testing Android apps based on Dagger and RxJava
Fabio Collini is an Android developer since 2009, first as a freelance with two apps on Play Store and then as senior developer. Now he works at Nana Bianca, a startup accelerator in Florence. He is one of the authors of the second edition of Android Programmazione Avanzata, an Italian book dedicated to some advanced aspects of Android development.