Unit Test Results and Code Coverage for Android

In this blog post, Mark Prichard presents a solution on how to use Jenkins to give a “QA dashboard” view of a native Android application build. His goals were to show metrics for the results of unit test and code coverage in an Android build context on the Jenkins continuous integration system.

To achieve this goal, he used the android-junit-report open source tool to the results of the Android unit tests in JUnit format. Then he used the the Emma code coverage tool and Android Lint code quality tool to produce the quality reports. The blog post provide instructions on how to add these tools to the Jenkins configuration file to achieve the desired results.