【发布时间】:2012-06-08 01:36:20
【问题描述】:
通常我使用adb shell am instrument -w com.android.contacts.tests/android.test.InstrumentationTestRunner 运行一个junit 测试。它确实有效,它将运行我所有的测试。
但是当我在运行 junit 时设置断点并希望进入调试模式时,它失败了。当我调试普通的 android 应用程序时,我制作断点的方式有效。
所以我搜索了网页,并尝试了adb shell am instrument -e debug true -e class com.android.contacts.AndroidUtilsTest -w com.android.contacts.tests/android.test.InstrumentationTestRunner 之类的东西,但仍然没有运气。你的如何解决这个问题?我不仅要调试junit类,还要调试正常项目中的代码。
【问题讨论】:
标签: android junit tdd android-testing