I clicked on the github repository that contains the same configuration that you mentioned in your question:
- android standard testing + emma code coverage
- robolectric + cobertura code coverage (btw thanks, I thought cobertura is not compatible with robolectric)
and their inclusion in the sonar. Only one at a time, but still the configuration is an interesting base for work.
https://github.com/stephanenicolas/Quality-Tools-for-Android
A colleague and I mean working on this issue with very similar thinking, like you. We want to improve the integration of various testing technologies that will be available for Android projects, and to report on the work in sonar.
If you want to join our efforts, we will be happy to give you repo rights and start working with you.
Stéphane
- Update
Starting in March 2013, we also offer a single configuration for using the Jacoco online tools for robolectric and standard junit tests and getting results displayed simultaneously in Sonar.
Snicolas
source share