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)
- Real World Kotlin Development Workshop (in London on 1st - 2nd July 2019)
- Modern development with Java (in London on 15th - 17th July 2019)
- CloudNative London 2019 (in London on 25th - 27th September 2019)
- Keynote by Rebecca Franks on Tips for Building Custom Views on Android with Canvas APIs📏🎨 (in London on 19th June 2019)
- Keynote by Markus Eisele on Java in the Age of Containers and Serverless (in London on 20th June 2019)
- Awesome CI/CD Data Pipelines for Distributed Data-Sources (SkillsCast recorded in May 2019)
- Testing embedded Python apps (SkillsCast recorded in April 2019)
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.