Wwtgylq5vashi1peroew
SkillsCast

Testing Android apps based on Dagger and RxJava

26th October 2017 in London at Business Design Centre

There are 73 other SkillsCasts available from droidcon London 2017

Please log in to watch this conference skillscast.

663359536 640

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:

Thanks to our sponsors

Testing Android apps based on Dagger and RxJava

Fabio Collini

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.

SkillsCast

Please log in to watch this conference skillscast.

663359536 640

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:

Thanks to our sponsors

About the Speaker

Testing Android apps based on Dagger and RxJava

Fabio Collini

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.

Photos