feat(qa): Android instrumented test discovery (managed devices + connectedAndroidTest)#422
Conversation
…ectedAndroidTest)
First slice of the device & GUI verification roadmap (track A1).
TestDiscovery now emits an android_instrumented e2e entry for Android
Gradle projects:
- Gradle Managed Virtual Devices preferred: device name parsed from
managedDevices blocks (Kotlin create("name") and Groovy named-block
DSLs), command <gradle> <device>DebugAndroidTest - the emulator is
provisioned and torn down by Gradle itself
- Fallback to connectedAndroidTest when src/androidTest sources exist
(requires an attached device/emulator)
- Unit-test command stays primary; instrumented entry is type e2e
- Allowlist: emulator, avdmanager, sdkmanager added to the android
framework commands
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Oleg Miagkov <mrobenner@gmail.com>
|
Warning Review limit reached
Next review available in: 40 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary
First slice (A1) of the Device & GUI Verification Roadmap: lift Android projects from L1 (JVM unit tests) to L2 (instrumented tests on an emulator).
TestDiscoverynow emits anandroid_instrumented(typee2e) entry for Android Gradle projects:./gradlew <device>DebugAndroidTest— Gradle provisions and tears down the emulator itself, no lifecycle code on our sidesrc/androidTestsources, no managed devices./gradlew connectedAndroidTest— requires an attached device/emulatorDevice names are parsed from both DSLs: Kotlin
create("pixel2api30")and Groovy named blocks (pixel6api33 { ... }), root andapp/module build files. The unit-testgradle testcommand stays primary — instrumented runs are additional, mirroring the playwright/cypress pattern.Allowlist:
emulator,avdmanager,sdkmanageradded to theandroidframework commands (joininggradlew/adbfrom #395).Testing
tests/test_discovery.py: 78 passed (6 new: both DSLs, connected fallback, negative cases for missing tests and non-Android Gradle, primary-command precedence). Ruff check + format clean.🤖 Generated with Claude Code