简体   繁体   English

如何在Android Studio中以调试模式运行AndroidTestCases?

[英]How can I run my AndroidTestCases in debug mode in Android Studio?

Running an AndroidTestCase normally in Android Studio works fine. 在Android Studio中正常运行AndroidTestCase可以正常工作。

When I try to run the test in debug mode, however, I am stuck at "Instantiating tests...": 但是,当我尝试在调试模式下运行测试时,我被困在“实例化测试...”中:

在此处输入图片说明

How can I run my AndroidTestCases in debug mode in Android Studio? 如何在Android Studio中以调试模式运行AndroidTestCases?

What a PitA. 真是个PitA。

Run > Edit Configurations > "TestName" > Miscellaneous 运行>编辑配置>“ TestName”>其他

Then uncheck the displayed installation options. 然后取消选中显示的安装选项。 Not sure why this works but it does 不知道为什么这可行,但确实可行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 android studio 3.3.1 中以调试模式运行应用程序? - How to run an application in debug mode inside android studio 3.3.1? 如何在我的 Android 工作室中正确开发暗模式? - How can I correctly to develop the dark mode in my Android studio? Android Studio:从存储库中克隆项目后,我无法运行/调试我的项目 - Android Studio: I can not run/debug my project after cloning it from my repository 如何在 Android Studio 中将我的物理设备作为模拟器运行? - How can I run my physical device as an emulator in Android studio? 如何通过我的 Mac 上的 USB 在我的设备上运行/调试我的 android 应用程序? - How can I run/debug my android app on my device via USB from my mac? 如何知道我的Android应用程序是在发布版还是调试模式下构建的? - How can I know if my android app was built in release or debug mode? 如何在Android Studio中调试WearableListenerService? - How can I debug a WearableListenerService in Android Studio? 我无法运行我的应用程序Android Studio - I can not run my application Android Studio 我如何在 android studio 中构建和运行我的应用程序 - How i can build and run my app in android studio 如何在我的模拟器上为 Fireabase crashlytics 启用调试模式? - How I can enable debug mode for Fireabase crashlytics at my emulator?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM