arturdm / jacoco-android-gradle-plugin

Gradle plugin that creates JaCoCo test reports for Android unit tests
Apache License 2.0
561 stars 111 forks source link

Not excluding classes #23

Open Poeschl opened 8 years ago

Poeschl commented 8 years ago

Hi there, I'm using this plugin in combination with Dagger 2 and the latest Butterknife. For some reason the excludes are not taken into account on the generation of the coverage report:

I put it into the gradle file like described in the README and added some own exclude patterns.

This config here: https://github.com/Poeschl/AndroidSkeleton/blob/9a15f3918cf555073d4db31387f31d24722c74f0/app/build.gradle#L74-L80 gives me the printout of:

[android/databinding/**/*.class, **/android/databinding/*Binding.class, **/BR.*, **/R.class, **/R$*.class, **/BuildConfig.*, **/Manifest*.*, **/*$ViewInjector*.*, **/*_MembersInjector.class, **/Dagger*Component.class, **/Dagger*Component$Builder.class, **/*Module_*Factory.class, **/*$ViewBinder*.*, **/*_MembersInjector*.*, **/*_Factory*.*]

But in the reports there are still classes which should match with the pattern. For example:

luisribeiro commented 8 years ago

Hi there!!

I'm facing the same problem too. Could you help us, please?

Thank you

The0ldM0nk commented 7 years ago

Guys, do we have any updates on this?

fangzhzh commented 6 years ago

some problem here. databinding classes are not excluded.

ardevd commented 6 years ago

Same here. Cant seem to exclude any classes.

tmehta813 commented 3 years ago

Same here, Has anyone found solution for it ?

mihmilicio commented 2 years ago

same here, any news?