adb_farm_run
Upload an app APK and test APK to Firebase Test Lab, then run instrumented tests on specified device models and API levels.
Instructions
Run tests on Firebase Test Lab. Uploads an APK and test APK, executes instrumented tests across specified device models and API levels. Requires gcloud CLI authenticated with a Firebase project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appApk | Yes | Path to the app APK file | |
| testApk | Yes | Path to the test/instrumentation APK file | |
| devices | No | Device specs as 'model=DEVICE,version=API' (e.g., 'model=bluejay,version=33'). Omit for default device. | |
| testTargets | No | Specific test class or method (e.g., 'class com.example.MyTest') | |
| timeout | No | Test timeout passed to gcloud --timeout (e.g., '300s', '10m'). This is the LAB-side timeout. | 300s |
| resultsBucket | No | GCS bucket for results (omit for default) | |
| execTimeoutMs | No | Local execFile timeout for the gcloud invocation in ms (1min-60min, default 10min). Y4 fix: bigger device matrices or larger APKs can plausibly exceed the previous hardcoded 10min. |