Eclipse with ADT - JUnit Test Not Running With Ecl

2019-01-29 00:39发布

I am currently running Eclipse Juno with the Android Development Tools plugin so I can develop Android applications and test them. To get code coverage of the applications (and preferably the APIs of Android themselves), I installed EclEmma into Eclipse, but just when I was about to run it for the first time, it gives me an error:

Error while dumping coverage data (code 5013).
Socket closed

I don't know what might be causing this, and when I looked it up here, the workaround didn't seem to work or I'm just not sure where those directories it mentioned are when dealing with the Android SDK. Anyone deal with similar problems?

1条回答
The star\"
2楼-- · 2019-01-29 01:24

Latest versions of EclEmma use Jacoco, which as far as I know doesn't support off-line instrumentation. You should try to find a pre-Jacoco version of EclEmma (it was working just one year ago, http://dtmilano.blogspot.ca/2011/07/eclipse-android-and-emma-code-coverage.html) and try to install it on Juno (very unlikely to work) or stick to the HTML reports, wich can be opened in Eclipse, so it's no such a big problem.

查看更多
登录 后发表回答