android - Debug instrumentation test -
android - Debug instrumentation test -
i have issue in instrumentation test (for utilize robotium), decided debug it. run test command line gradlew connectedandroidtest, runs android studio (v0.8.14) selecting specific gradle task. if seek debug gradle task, error unable open debugger port : java.net.socketexception "socket closed" , test continues run (without debugging). there way debug instrumentation test (with ide) or missing in setup?
update: however, works on emulator!
i had same problem. you're running tests in wrong way. instead of clicking "debug" on gradle task "connectedandroidtest" go "edit run configurations" in android studio. click "plus" sign , add together new "android tests" configuration. - select module tests reside in (probably main module of app) , save configuration. click "debug" on newly created config.
android debugging
Comments
Post a Comment