How to redevelop or extend jacoco in android project to get increment code coverage


(morphin3) #1

I want to modify some parts of Jacoco, it seems that Jacoco plugin was embedded in gradle
What should I do to use my own Jacoco rather than the nested one in android.

Is there any way to get increment code coverage (which meas only get the code coverage about diff code)

Android Gradle Plugin has a nested Jacoco,you can see it below:

My English is poor ,sorry~

(Peter Tran) #2

What’s the version of Jacoco? Maybe you can use your specific version. The customizing dependency resolution link may help.

(morphin3) #3

I mean there is hard code in gradle plugin declare Jacoco dependency.
So should I modify gradle plugin to use my own version of Jacoco?

For example: