Tuesday, July 24, 2012

Android Unit Tests and Coverage in Sonar

Some weeks ago I wanted to use Sonar in a small Android-app project to monitor code quality. Using sonar-runner I had very fast a working integration into my development environment and the first measurements were visible.

Most of the measurements like lines of code, violations, complexity or comments were instantly available. But two measures, code coverage and Unit tests, were a bit tricky to integrate. Therefore I will here list the steps I took to enable these two measures in Sonar for Android-app projects.
[Read more…]