Ank*_*kur 5 android android-testing android-studio android-instrumentation
我无法调试android Instrumentation测试用例(使用espresso和UiAutomator)
但早期的测试用例调试工作正常,但最近的更新它不再起作用了.它总是在实例化单元测试时受到攻击

我可以在命令窗口看到它正在尝试启动PACKAGE_NAME**.test**
adb shell am instrument -w -r -e debug true -e class PACKAGE_NAME.LanguageScreenTest#testSelectImportant PACKAGE_NAME**.test**/android.support.test.runner.AndroidJUnitRunner
Run Code Online (Sandbox Code Playgroud)
问题出在 git 中未跟踪的某些配置文件(所以现在无法弄清楚,有空时会做)
adb shell am Instrument -w -r -e debug true -e class PACKAGE_NAME.LanguageScreenTest#testSelectImportant PACKAGE_NAME**.test**/android.support.test.runner.AndroidJUnitRunner
当 debug 参数为 true 时,测试用例在调试模式下不起作用,并且会出现上述状态
但是当这个参数为 false 时它会起作用
为了解决这个问题,我必须使用同一存储库的另一个克隆(我还尝试在同一工作区中删除 .idea 和 .gradle ,但这对我不起作用)
| 归档时间: |
|
| 查看次数: |
1701 次 |
| 最近记录: |