[英]Android APK vs test APK?
I see Android creates both a "normal" and an androidTest APK inside the outputs folder?我看到 Android 在输出文件夹中创建了一个“正常”和一个 androidTest APK?
ie IE
Do I need to install both of these if I want to run tests on the device via the debug bridge for example?例如,如果我想通过调试桥在设备上运行测试,是否需要同时安装这两个?
Thanks谢谢
app-dev-debug is your app, the debug build. app-dev-debug是你的app,调试版本。 app-dev-debug-androidTest is the apk for your android instrumentation tests.
app-dev-debug-androidTest是你的android instrumentation测试的apk。 They have to run on an Android device, so they need to be in an apk.
他们必须在Android设备上运行,因此他们需要在apk中。
Just for clarification:只是为了澄清:
You can install app-dev-debug.apk
on the device and start using it as an application, no need to install app-dev-debug-androidTest.apk
.您可以在设备上安装
app-dev-debug.apk
并开始将其用作应用程序,无需安装app-dev-debug-androidTest.apk
。
On the other side, you can install app-dev-debug-androidTest.apk
, but you cannot use it as an application.另一方面,您可以安装
app-dev-debug-androidTest.apk
,但不能将其用作应用程序。 It only contains information about android instrumentation tests.它仅包含有关 android 仪器测试的信息。 And to run this tests, you also need to install
app-dev-debug.apk
.要运行此测试,您还需要安装
app-dev-debug.apk
。 And then you can run them for example with ADB .然后您可以使用ADB运行它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.