Android gradle will build this code coverage for robolectric tests

Is there a way to create a gradle construct that will generate code coverage from a robolectric test that can be sent to sonar?

+4
source share
1 answer

As far as I can tell: this time No.

In order to have code coverage, you need Emma support and is not yet fixed in the Android plugin. gradle. It was supposed to appear in version 0.8. +, But he also "suggested" to come in version 0.6+, so do not hold your breath.

Roadmap: http://tools.android.com/tech-docs/new-build-system/roadmap

Emma : https://code.google.com/p/android/issues/detail?id=60964

+1

Source: https://habr.com/ru/post/1523404/


All Articles