In android world to run UI test with ADB, you need to execute this command
adb shell am instrument -w com.tarek360.sample.test
but before running this command you need to install your test package and main application Android package files (.apk files) to your current Android device or emulator, more info here.
Normally the APKs package names will be in the following format:
- Main APK: com.tarek360.sample
- Test APK: com.tarek360.sample.test
but in Flutter world, when I run flutter drive, for example, the following command:
flutter drive --target=test_driver/app.dart
I see only the main APK has installed and I don't see any test APK has installed on my device, I'm wondering how does Flutter Driver works with Android, it's important for me to understand because I have very customized CI and I build APKs in a completely different environment than the test runner environment.