Play Services not available on Cloud Test Lab
<p>I try to run my tests in Google Cloud Test Lab. My unit tests and espressos test passe with no problems.</p>

<p>But for some espresso tests that require Google Apis, like maps and places, my tests fails.</p>

<p>In more when I run this exact code in Google Cloud Test Lab it fails and return "No play services availables !" :</p>

<pre><code>@org.junit.Test
public void testPlayServicesAvailables() throws Exception {
    GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
    int result = googleAPI.isGooglePlayServicesAvailable(WayzUpApp.getContext());
    if (result != ConnectionResult.SUCCESS) {

           throw new Exception("No play services availables !");

    }
}
</code></pre>

<p>To launch my cloud tests I use the command :</p>

<blockquote>
  <p>gcloud beta test android run --app app/build/outputs/apk/app-debug.apk --test app/build/outputs/apk/app-debug-androidTest.apk --device-ids Nexus5 --os-version-ids 23 --locales fr  --orientations portrait</p>
</blockquote>

<p>Is there a way to make Play services availables on Cloud Test Lab?</p>

<p>Thanks.</p>