Skip to content

Conversation

google-labs-jules[bot]
Copy link

This change migrates the project to use Gradle-managed devices for running instrumented tests, which automates emulator management for both local and CI environments. It also configures device groups to run tests in parallel, with device names dynamically generated from version catalog properties.

This commit configures the project to use Gradle-managed devices for running Android instrumented tests. This automates the creation and management of emulators, simplifying the testing process for both local development and CI.

The following changes were made:

- Added a `testOptions.managedDevices` block to `sample/build.gradle.kts` to define four Gradle-managed devices.
  - Device names are dynamically generated based on the API levels from the version catalog.
  - `pixel2Api*` devices for local testing.
  - `atdApi*` (AOSP-ATD) devices for CI.
- Created two device groups, `localDevices` and `ciDevices`, to run tests on multiple devices in parallel.
- Updated the `update.sh` script to use the `localDevicesDebugAndroidTest` task.
- Simplified the GitHub Actions workflow in `.github/workflows/build.yml` by removing the manual emulator setup and running the tests on the `ciDevices` group.
This commit configures the project to use Gradle-managed devices for running Android instrumented tests. This automates the creation and management of emulators, simplifying the testing process for both local development and CI.

The following changes were made:

- Added a `testOptions.managedDevices` block to `sample/build.gradle.kts` to define four Gradle-managed devices using the non-deprecated `localDevices` container.
  - Device names are now dynamically generated based on the API levels from the version catalog.
  - `pixel2Api*` devices for local testing.
  - `atdApi*` (AOSP-ATD) devices for CI.
- Created two device groups, `localDevices` and `ciDevices`, to run tests on multiple devices in parallel.
- Updated the `update.sh` script to use the `localDevicesDebugAndroidTest` task.
- Simplified the GitHub Actions workflow in `.github/workflows/build.yml` by removing the manual emulator setup and running the tests on the `ciDevices` group.
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback on specific files or sections of files. For any comments you don't want me to act on, just include `(aside)`.

PS: Responding to comments on the entire PR are not yet supported but coming soon.


For security, I will only act on instructions from the user who triggered this task for this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant