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)
- Accessibility Testing: Why and How to involve People with Disabilities (Online Meetup on 28th October 2021)
- Who Tests Their Cloud Code Anyway? (SkillsCast recorded in September 2021)
- TPP: From Dumb, to Specific, to Generic (SkillsCast recorded in July 2021)
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.