Firebase Android Series: Test Lab

Welcome to another article of Firebase Android Series. Here, we are going to learn how to build an Android app using Firebase from scratch.
This is the fifth article of Firebase Android Series. We put the focus on learning how to use Firebase to enhance an existing feature on your application or adding new ones.
The module that we are going to deal with this time is Firebase Test Lab.
Firebase Test Lab is a cloud-based app-testing infrastructure. It allow us to test our Android or iOS app across a wide variety of devices and configurations. The results includes logs, videos, and screenshots.
Test Lab runs Espresso and UI Automator 2.0 tests on Android apps. Write tests using one of those frameworks and then run them through the Firebase console or Android Studio. Firebase also allow us to run tests for our application using automated Robo tests.
How to start?
To run a test we just need to drag a valid APK file to our Firebase Console in the Test Lab tab.

After that we can choose if run an instrumentation test, a Robo test or a Game Loop. Firebase Test lab is one of the most simple tools that Firebase Console provides. To complete the test you will just need a valid APK file with your tests prepared and follow the steps that Firebase Console will show.
How my tests will look?
Test Lab uses real, production devices running in a Google data center to test your app. The devices are flashed with updated APIs and have customizable locale settings, allowing you to road-test your app on the hardware and configurations it’ll encounter in real-world use.
Below you can see how the results of each one of the test runs will look after execute it:
Instrumental Tests

Robo Tests

Robo tests will also provide a Crawl graph in the results, this graph will show you all the different interactions that the test have executed and how it looks on the screen. You can see the result image here
Continuous Integration
Below you can find a few examples and interest articles about how to integrate Firebase Test Lab in your continuous integration system.
Github Sample
This series will always work over the same project. Building a chat application using Firebase and Kotlin. You will find each one of the different articles’ code in individual branches of the project.