vanniktech / gradle-android-junit-jacoco-plugin

Gradle plugin that generates JaCoCo reports from an Android Gradle Project
http://vanniktech.com
Apache License 2.0
399 stars 72 forks source link

Exclude did not work #170

Closed franrx closed 4 years ago

franrx commented 4 years ago

I'm trying to exclude my model and view classes from coverage report and it didn't work.

Here is my configuration.

junitJacoco { jacocoVersion = '0.8.5' // type String ignoreProjects = ['data', 'domain', 'profilelibrary', 'app'] // type String array excludes = [ '/R.class', '/R$*.class', '/$ViewInjector.*', '*/$ViewBinder.', '/BuildConfig.*', '/Manifest.', '/$Mapper.', '*/$View.*', ]// type String List includeNoLocationClasses = false // type boolean includeInstrumentationCoverageInMergedReport = false // type boolean }

vanniktech commented 4 years ago

We're just delegating and using what Gradle provides us. So either file there or ask on Stackoverflow.