Question

I am currently trying to test the Android SDK/API, and to do so have created an application that utilizes the SQLite classes in the API as well as a test that runs that application. I have been desperately trying to find code coverage of the SDK so that I can analyze my tests and get some actual results for my project. However, I can not seem to find any documentation (or even Stack Overflow questions) that provide any help for me to do this. I have been playing around with EMMA (and for a while Ant, although apparently the version in my Android build is not sufficient, and downloading it separately didn't go well for me). I found this question before, but I don't get their solution.

Can anyone help me? Thanks.

EDIT: I tried adding the code from the preceding link's link (it's adding code to the build.xml and ant.properties for EMMA), but now I don't even know where the coverage logs are stored, if it even works like I think it might.

Was it helpful?

Solution

I run code coverage on my Android projects using EclEmma. My unit tests are setup to run using Robolectric. I haven't used Ant to manage my Android builds, but it shouldn't be difficult getting it to work with these.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top