Tutorial shows how to run Espresso automation test on release builds. By default Android projects are configured to run on debug builds, to be able to run the tests on release builds we need to add a configuration to our build.gradle file. Add below snippet to your Android project.