cannot run as debug robotium junit test

限于喜欢 提交于 2019-12-12 03:39:01

问题


I guess this is a duplicate with I can run Robotium test but cannot debug it but there is no valid answer for it.

I have a application that I can test with robotium. (Run as Android Junit Test the test runs fine) If I try Debug As Android Junit Test, the application does not start, eclipse appears to be stuck launching the tests.

Can you tell me the steps in order to run my test in debug mode (I want to debug the test, not the app)?


回答1:


So there is two requirement to get this to work: 1. you need to have the AUT (App Under Test) setup in your workspace 2. the AUT must be debuggable=true (manifest file)

my mistake was that because I wanted to debug the test only I did not think that I needed the AUT project also.



来源:https://stackoverflow.com/questions/13203360/cannot-run-as-debug-robotium-junit-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!