Is it possible to enter debug mode for android when running junit test?

前端 未结 3 980
长情又很酷
长情又很酷 2021-02-19 10:39

Usually i run a junit test using adb shell am instrument -w com.android.contacts.tests/android.test.InstrumentationTestRunner. And it actually works, it will run al

3条回答
  •  庸人自扰
    2021-02-19 11:36

    I guess you are trying to debug your tests using Eclipse. If this is the case you can just select you test project, right click, Debug As... -> Android JUNit test and the execution will stop at the breakpoints you set in your tests or in your code.

提交回复
热议问题