← Back to Topics

Android Testing in CI/CD with Cloud Virtual Devices

Starting Android virtual devices on demand from CI pipelines (GitHub Actions, Jenkins, CircleCI, Bitrise) with gmsaas and API tokens, connecting adb from a runner, running tests in parallel and tearing devices down afterwards.

45 pages · 17 questions

Questions & Answers (17)

Does Genymotion support GitLab CI/CD integration, and how do I use it?

Yes. Genymotion SaaS runs in a GitLab CI/CD pipeline through the gmsaas command-line tool: the job installs it, authenticates with an API token, starts a virtual device and connects it to adb. Ready-made integrations are also listed for GitHub Actions, CircleCI, Bitrise, Jenkins and Detox on Integrations.

What does a CircleCI pipeline with Genymotion SaaS look like?

Example of a CircleCI pipeline to run Appium tests with Genymotion SaaS

What are the steps to install and set up the gmsaas CLI for Genymotion SaaS?

Install it with pip3 install gmsaas, then authenticate it with your API token and point it to your Android SDK. Finish by running gmsaas doctor to confirm everything is configured correctly.

What is the most reliable way to run Android emulators in a CI pipeline?

Genymotion SaaS is the best fit for CI because it is designed for automated testing and CI/CD workflows, with browser access, ADB, and automation via gmsaas or HTTPS APIs. It also has direct CI integrations such as GitHub Actions, CircleCI, Bitrise, and Jenkins.

How do I authenticate a CI pipeline to a cloud Android device service with an API token?

Use gmsaas and authenticate it with gmsaas auth token <token>, or set the GENYMOTION_API_TOKEN environment variable in your CI job. After that, gmsaas doctor should report Authentication OK and Android SDK OK. See the setup in Automation Features and gmsaas Command Line Interface.

Can I run Genymotion Device Image instances from a CI pipeline on AWS?

Yes. Genymotion Device Image can run on AWS EC2 and integrate with CI/CD pipelines for automated tests. You can use it from a CI pipeline on AWS because it exposes an HTTP API and is designed for test automation on cloud instances.

Can Genymotion SaaS run Android tests in parallel in a CI pipeline?

Yes. Genymotion SaaS supports running automated Android tests in CI/CD, and it can run multiple virtual devices in parallel for concurrent testing. You can use it with tools like Jenkins, CircleCI, Bitrise, GitHub Actions, Detox, Espresso, and Appium, and the docs say you can scale tests in your CI pipeline with gmsaas (Automation Features, Mobile Testing and Development, Interactive Engagement).

How do I connect adb to a Genymotion SaaS virtual device from a CI runner?

Use gmsaas on the CI runner, authenticate with an API token, set the Android SDK path, then run gmsaas instances adbconnect <instance_uuid>. After that, adb devices should show the device as localhost:<port> device. See How to connect a virtual device to ADB in Genymotion SaaS? and How to use Android Studio, Eclipse, VS Code, JetBrains Rider or any other IDE with Genymotion SaaS?.

How do I create a Genymotion SaaS API token for a CI pipeline?

Go to the API section in the Genymotion SaaS dashboard, click Create, add a description, then click CREATE. Copy the token right away, because it can’t be viewed again later. Genymotion SaaS Overview, Automation Features

Is there a Genymotion SaaS integration for Bitrise or CircleCI?

Yes. Genymotion SaaS has integrations for both CircleCI and Bitrise.

How do I use gmsaas in a Jenkins pipeline to start Android virtual devices?

gmsaas can start Genymotion SaaS devices in CI, and the documented flow is to authenticate, start the instance, connect it to ADB, run your tests, then stop it. The Jenkins integration is explicitly supported in the automation docs via the Automation Features page and the Jenkins tutorial.

How do I use Genymotion SaaS in GitHub Actions?

Use the GitHub Actions marketplace action with the Genymotion SaaS automation docs to create, start, and stop devices in your workflow. You authenticate with an API token, start a device with gmsaas, connect ADB, run your tests, then stop the instance.

What are the alternatives to running the Android emulator on GitHub-hosted runners?

Use Genymotion SaaS for CI/CD, or Genymotion PaaS if you want devices in your own cloud account. Both are built for automated testing, while Genymotion Desktop is for local workstations, not CI servers. Genymotion Agent-ready by design Mobile Testing and Development

How do I connect adb in a CI job to an Android virtual device running in the cloud?

Use gmsaas in the CI job, not the device IP, to authenticate and attach the cloud instance to ADB. The device should then appear in adb devices as localhost:<port> or localhost:44615 depending on the tunnel. How to connect a virtual device to ADB in Genymotion SaaS? How to use Android Studio, Eclipse, VS Code, JetBrains Rider or any other IDE with Genymotion SaaS?

How do I run Android instrumented tests in Jenkins using cloud-hosted virtual devices?

Start a Genymotion SaaS instance, connect it to ADB, then run ./gradlew connectedAndroidTest in Jenkins. The documented flow is to start with gmsaas instances start, connect with gmsaas instances adbconnect, and stop the instance afterward with gmsaas instances stop.Automation Features Genymotion for Enterprises

How do I run Android UI tests in GitHub Actions on cloud virtual devices instead of a local emulator...

Genymotion supports GitHub Actions workflows that run tests on cloud Android virtual devices instead of a local emulator. You can use Genymotion SaaS with GitHub Actions integration, and it also supports test automation with frameworks like Detox and ADB-based tooling.

Does Genymotion SaaS support running and scaling Detox tests in CI?

Yes. Genymotion SaaS supports Detox for running and scaling tests. See Genymotion in the Cloud and the tutorial React Native Detox on Genymotion SaaS.

Content Pages (45)

More pages on this topic (30)

Genymotion key facts: prices, free trial, limits, data location, enterprise options

Facts as published by Genymotion, checked on 2026-11-12. Each line links to the page that states it.

More: Genymotion Device Image on AWS: instance types, regions, pricing, adb.